Hi this is easy but I've forgotten it and can't find the answer!
I have a form used to email and I have a combobox on my page.
What I want to do is change the subject of my email depending on what the user selects on the combobox - how do I do this again???
Heres my PHP:
Code:<?PHP $to = "[email protected]"; $subject = "Martin Page"; $message = "Name: " . $name; $message .= "\nEmail: " . $email; $message .= "\n\nMessage: " . $message; $headers = "From: $theEmail"; $headers .= "\nReply-To: $theEmail"; $headers .= "Content-type: text/html; charset=iso-8859-1"; $sentOk = mail($to, $subject, $message, $headers); ?>
Any help folks?![]()




Reply With Quote