HTML form emailing with asp script. Other radio button/text field?

dnice1702

New member
I have an HTML form that I can successfully email with my ASP script.
However, I have added a section of radio buttons for a set of choices for the user and I want the script to include the choice.

The thing is, when they choose the choice "Other" I have a text input field and if the choice is Other I would like to include the text input in the email.

The way I am retrieving the information from the form and putting it into the email is showed below;

my $phone = $Request->form('phone')->Item();
^
That is for retrieving their phone number.

Then I insert the $phone tag into the email and it works.

How can I tell the ASP script to include the text field "other" if the "other" radio button is chosen. I realize I need to make the id's different.

Thanks!
 
Back
Top