http://www.craigandarla.com/index.php?id=20
Where do I delete the little drop down menu that is above the message box?
Thanks, Pat
Posted 04 January 2005 - 08:07 PM
Posted 04 January 2005 - 08:42 PM
patdpoo, on Jan 4 2005, 04:07 PM, said:
$SendMail .= "<select name='subject'>n";
foreach ($subject_array as $value2) {
$SendMail .= "<option value=" . '"'. $value2 .'"' . ">" . $value2 . "</option>n";
}
$SendMail .= "</select><br><br>n";
This chunk of code simply loops through the $subject_array variable and uses its contents to create the drop-down select box... The recipient drop-down works in the same fashion using the code listed below:$SendMail .= "<select name='to'>n";
foreach ($recipient_array as $key => $value) {
$SendMail .= "<option value= " . $value . ">" . $key . "</option>n";
}
$SendMail .= "</select><br><br>n";
You will also notice that there are references to these items at the top of the snippet... The email subject is extracted from the form variables using $the_subject = $_POST['subject'];Posted 04 January 2005 - 08:43 PM
$SendMail .= "<select name='subject'>n";
foreach ($subject_array as $value2) {
$SendMail .= "<option value=" . '"'. $value2 .'"' . ">" . $value2 . "</option>n";
}
$SendMail .= "</select><br><br>n";
AND$the_subject = $_POST['subject'];To something like:
$the_subject = 'Email from web site form';You should be good.
Posted 05 January 2005 - 05:54 AM
Posted 05 January 2005 - 12:53 PM
0 members, 1 guests, 0 anonymous users