Hi all PHP Builder community,
I have a HTML contact feedback form on my site. I've got the name, e-mail, web URL, results coming to me as they should. But what I'm having trouble with is the drop down box results. I want the user to be able to select their choice from a drop down box and then have that info be included in the feedback results I get sent to me along with their other information. Here's some of the code from the PHP form.
$mail->From = $POST["email"];
$mail->FromName = $POST["name"];
$mail->Phone = $POST["phone_no"];
$mail->Website = $POST["website"];
$mail->Interested_in = $POST["Interested_in"];
$mail->AddAddress("heather@xxxxxxxxxxx",$username); //$mail->addBCC($POST["email"],$_POST["name"]);
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = "From xxxxxxxx Website";
$mail->Body = $POST["comments"]."<br>From:".$POST["name"]."<br>Email:".$POST["email"]."<br>Phone number:".$POST["phone_no"]."<br>Website:".$POST["website"]."<br>Interested in:".$POST["Interested_in"];
if(!$mail->Send())
I'm not really a programmer, but I understand that it has something to do with passing the variables? Say the choices on the form are: red, blue, green, yellow.
Thank you for your help and expertise!!!