Der Führer
I feel pretty...
Gender:
Posts: 183
471 credits Members referred : 0
« on: Apr 18, 2006, 01:59:20 AM »
I've had this contact page up and running for a while and I decided to add a Select menu. The problem is i have no idea how to do this in PHP so it shows up on the email it sends me. I'd also like to try to get the feature where it send the person back to my form if the don't select something besides the "Select One"... I know this is a lot to ask so if someone could point me to a tutorial or have a look at the zip I post I would really appreciate it.
Der Führer
I feel pretty...
Gender:
Posts: 183
471 credits Members referred : 0
« Reply #2 on: Apr 18, 2006, 03:41:12 AM »
they way the php is set up now is... it takes what the person types in each text box on the html file and sends it to my email address. What I am trying to do is make the Select thing show up on my email form. I don't know how you would do that in html for it to work with the php other than to give each option a different <label> and if i did that how would i coee it in th php file.
do you get what I am tryin to do?
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6441
39470 credits Members referred : 374
It's time to use PHP5!
« Reply #3 on: Apr 18, 2006, 08:55:16 AM »
Hello,
The best way is to post the form with $_SERVER['PHP_SELF'] as action inside the form element. Next, place all the form validation at the top of the same page. If all required fields are filled use this to call the mail script: