No, I understand that. But once the form is submitted, where are you calling the variable.
Look at what you have...
PHP Code:
<?php
define ('RECIPIENT', 'image@itsaboutimage.com');
define ('SUBJECT', 'Register For Classes');
if ($_REQUEST['do_form'] == 1) {
extract ($_REQUEST, EXTR_OVERWRITE);
$message = "First Name: $first_namen";
$message .= "Last Name: $last_namen";
$message .= "Phone Number: $phone_numbern";
$message .= "E-mail Address: $email_addressn";
$message .= "Number Of Attendees: $attendeesn";
$message .= "Comments: $commentsn";
if (mail (RECIPIENT, SUBJECT, $message, "From: $first_name $last_namenReply-To: $email_address" ) == true) {
?>
Where is $selectdate being used? I don't see it? Do this. Put this line at the vvery top within PHP tags...
echo (empty($_POST['selectdate'])) ? '' : $_POST['selectdate'];
If you get a date (one of the values from your dropdown) then you know your variable has been set. You just need to use it. If no, then there's other problems.
Aaron
Bookmarks