Hazel2003
06-14-2006, 08:47 PM
I have a php email form where the subject is a drop down list and the text is tied to an email value. For example depending on what subject you pick will determine who the form gets mailed to. However, when the email is sent I want the text to show up in the subject of the email and not the value of the drop down list. I would get that value with javascript this way...
var w = document.emailForm.requiredSubject.selectedIndex;
var selected_text = document.emailForm.requiredSubject.options[w].text;
return selected_text;
How do I do this with PHP? Mind you I know "just enough" PHP to get me by. Thank you for your help.
var w = document.emailForm.requiredSubject.selectedIndex;
var selected_text = document.emailForm.requiredSubject.options[w].text;
return selected_text;
How do I do this with PHP? Mind you I know "just enough" PHP to get me by. Thank you for your help.