
Arggg
It was the quotes - I didn’t have quotes around every, name="example" instead I had name=example.
Thanks!!!
<select value=15>Fifteen</ select>
&replyto=`email`
I have a field called "email", and in my call to eform 1.4 I use:
&replyto=`email`
However when I receive the email and hit reply it doesn’t use the email address. If I look at the message headers there is no "Reply-To". Any ideas? Does anyone have this working?
Andy
elseif ($type=="bcc") $mail->AddBCC($a[$i]);
elseif ($type=="replyto") $mail->AddReplyTo($a[$i]);
<option value="something">Something</option>
Line 91 column 68: character data is not allowed here.Notice in the error that it closed the option tag after value="Tech Support Related" automatically although I never made it that way.
...el="Sales Related" value="Tech Support Related"/>Sales Related</option>
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).
<option value="something" label="something" />
Notice in the error that it closed the option tag after value="Tech Support Related" automatically although I never made it that way.
# get SESSION data - thanks to sottwell
if($sessionVars){
$sessionVars = (strpos($sessionVars,',',0))?explode(',',$sessionVars):array($sessionVars);
foreach( $sessionVars as $varName ){
if( empty($varName) ) continue;
if( isset($_SESSION[$varName]) && !empty($_SESSION[$varName]) ) {
// dealing with array - sottwell 22-10-06
if(is_array($_SESSION[$varName])) {
foreach($_SESSION[$varName] as $name => $value) {
$fields[$name] = ( isset($fields[$name]) && $postOverides )?$fields[$name]:$value;
}
} else {
$fields[$varName] = ( isset($fields[$varName]) && $postOverides )?$fields[$varName]:$_SESSION[$varName];
}
// end with dealing with array
}
}
}
Now to my current problem. I reworked my form to match the way they are done in the demos. No placeholders. This works great for validation; and invalid field returns the form in perfect shape, all values including radio buttons and selects are preserved.
This discussion is closed to further replies. Keep calm and carry on.