I'd post this in a more relevent forum but, the only one for this script is for wordpress which i'm not using.
I'm trying to modify the SimpleModal Contact Form (http://www.ericmmartin.com/projects/smcf/) so that i can have it email to 1 of 2 email addresses chosen by the user from a drop down. i added this following into the code
Code: Select all
// User settings
$to = $nse;
$subject = "SimpleModal Contact Form";
$nse = "".$_POST["nse"];Code: Select all
<label for='sendto'>To:</label>
<select class='nse' tabindex='1000' name='nse' id='nse'><option id='nse' name='email1@nse.com' value='email1@nse.com'>email1@nse.com</option><option id='nse' name='email2@nse.com' value='email2@nse.com'>email2@nse.com</option></select>Code: Select all
if ($token === smcf_token($to)) {
smcf_send($name, $email, $subject, $message, $cc);
echo "Your message was successfully sent.";
}
else {
echo "Unfortunately, your message could not be verified.";
}
}I'm not the best at php and i can't figure out why this isn't working. if anyone can shed some light on this i'd greatly appreciate it. i"m attaching the full code for you to view as well
Thanks.
Derek