Copy link to clipboard
Copied
I have built an online form to provide registration for an event. When I test submit the form, all of the responses come through to my email except the two drop-down inputs I have included. Can you tell me why only those two are not coming through? Thank you in advance for your assistance!
According to GoDaddy's website,
Using Windows Hosting Form Mailers | Web & Classic Hosting - GoDaddy Help US
you can't edit the script. So it appears to be a generic contact form script where the form would look something like this and your success page is thankyou.html.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Contact Form</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Conta
...Copy link to clipboard
Copied
You need to give the select statements a name such as
<select name="AdultShirtSize">
Copy link to clipboard
Copied
I tried adding the code to the HTML, but still didn't work. Did I add it to the right place?
<td> </td>
<td><select><select name="shirtsize">
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="X-Large">X-Large</option>
<option value="2X-Large">2X-Large</option>
<option value="3X-Large">3X-Large</option>
</select></td>
<td> </td>
Copy link to clipboard
Copied
https://forums.adobe.com/people/Kevin+E. wrote
I tried adding the code to the HTML, but still didn't work. Did I add it to the right place?
<td> </td>
<td><select><select name="shirtsize">
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="X-Large">X-Large</option>
<option value="2X-Large">2X-Large</option>
<option value="3X-Large">3X-Large</option>
</select></td>
<td> </td>
Copy link to clipboard
Copied
Removed <select>...still no go.
Copy link to clipboard
Copied
Can we see the action script?
Copy link to clipboard
Copied
<section class="profileHeader">
<h1 style="color: #2F9B03">REGISTRATION FORM</h1>
<h3>Please complete the online form below:</h3>
<hr>
<form name="form1" method="post" action="gdform.asp">
<form action="/gdform.asp" method="post" name="form1" id="form1">
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="index.html" />
<table width="628" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="105"><div align="right" class="style1">First Name </div></td>
<td width="20"> </td>
<td width="296"><input name="firstname" type="text" id="firstname"></td>
<td width="207"> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Last Name </div></td>
<td> </td>
<td><input name="lastname" type="text" id="lastname"></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Maiden/High School Last Name</div></td>
<td> </td>
<td><input name="maidenname" type="text" id="maidenname"></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Phone Number </div></td>
<td> </td>
<td><input name="phone" type="text" id="phone"></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr><tr>
<td width="105"><div align="right" class="style1">Email</div></td>
<td width="20"> </td>
<td width="296"><input name="email" type="text" id="email"></td>
<td width="207"> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<td> </td>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
</tr>
<tr>
<td><div align="right" class="style1">Adult shirt size </div></td>
<td> </td>
<td><select name="shirtsize">
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="X-Large">X-Large</option>
<option value="2X-Large">2X-Large</option>
<option value="3X-Large">3X-Large</option>
</select></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Pick Your Meal </div></td>
<td> </td>
<td><p>
<label>
<input type="radio" name="Meal" value="Beef" id="Meals_0">
Beef</label>
<br>
<label>
<input type="radio" name="Meal" value="Chicken" id="Meals_1">
Chicken</label>
<br>
<label>
<input type="radio" name="Meal" value="Vegetarian" id="Meals_2">
Vegetarian</label>
<br>
</p></td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr><br>
<tr>
<td width="105"><div align="right" class="style1">Guest First Name </div></td>
<td width="20"> </td>
<td width="296"><input name="guestfirstname" type="text" id="guestfirstname"></td>
<td width="207"> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Guest Last Name </div></td>
<td> </td>
<td><input name="guestlastname" type="text" id="guestlastname"></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Spouse?</div></td>
<td> </td>
<td><select form="form1">
<option value="Yes">Yes</option>
<option value="No" selected>No</option>
</select></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Guest Phone Number </div></td>
<td> </td>
<td><input name="guestphone" type="text" id="guestphone"></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr><tr>
<td width="105"><div align="right" class="style1">Guest Email</div></td>
<td width="20"> </td>
<td width="296"><input name="guestemail" type="text" id="guestemail"></td>
<td width="207"> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
</tr>
<tr>
<td><div align="right" class="style1">Guest optional adult shirt size </div></td>
<td> </td>
<td><select>
<option value="Small">Small</option>
<option value="Medium">Medium</option>
<option value="Large">Large</option>
<option value="X-Large">X-Large</option>
<option value="2X-Large">2X-Large</option>
<option value="3X-Large">3X-Large</option>
<option value="None" selected>None</option>
</select></td>
<td> </td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align="right" class="style1">Pick Your Guest's Meal </div></td>
<td> </td>
<td><p>
<label>
<input type="radio" name="GuestMeal" value="Beef" id="Meals_0">
Beef</label>
<br>
<label>
<input type="radio" name="GuestMeal" value="Chicken" id="Meals_1">
Chicken</label>
<br>
<label>
<input type="radio" name="GuestMeal" value="Vegetarian" id="Meals_2">
Vegetarian</label>
<br>
</p></td>
</tr>
<tr>
<td><div align="right"><span class="style1"></span></div></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="50"><div align="right" class="style1">Comments/Requests</div></td>
<td> </td>
<td><textarea name="textarea" cols="38" rows="8"></textarea></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
<td> </td>
</tr>
</table>
<p> </p>
<p> </p>
</form>
</section>
Copy link to clipboard
Copied
This is the action script
<form name="form1" method="post" action="gdform.asp">
As side notes:
1. you have called the form element twice as in
<form name="form1" method="post" action="gdform.asp">
<form action="/gdform.asp" method="post" name="form1" id="form1">
this is a no-no.
2. All of the SELECT elements need to be named. At the moment only the first one has been named.
Copy link to clipboard
Copied
That's the form code that I have been using from GoDaddy. it is sometimes so hard to get it to work that once it is working, I just continue to use it. In this case, the form submissions are working...it's just those particular data points are not being emailed.
Yes, I am aware of the others. I was just trying to figure out what was wrong with one, and then apply to the other. Are you saying that not having all of them set is keeping the information of the one from coming through?
Copy link to clipboard
Copied
No, that will not stop the valid ones from going through
Copy link to clipboard
Copied
Ok, so what are you saying I need to change or remove in the action script?
Copy link to clipboard
Copied
Unless you show whats in the mail script its not possible to provide any help.
Even if you do theres no one around here that uses asp that l know of, which is what your mailing script is written in but it might be possible to see how you are getting the 'shirtsize' from the script or maybe not getting it from the script.
Copy link to clipboard
Copied
According to GoDaddy's website,
Using Windows Hosting Form Mailers | Web & Classic Hosting - GoDaddy Help US
you can't edit the script. So it appears to be a generic contact form script where the form would look something like this and your success page is thankyou.html.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Contact Form</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Contact Form</h1>
<form action="gdform.asp" method="post">
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
<p>Name:
<input type="text" name="Name" placeholder="First & Last" required/>
<p>E-Mail:
<input type="text" name="email" placeholder="you@domain.com" required />
<p>Comments:
<textarea name="comments" cols="40" rows="10">
Type comments here.</textarea>
</p>
<input type="submit" name="submit" value="SUBMIT"/>
</form>
</body>
</html>
Copy link to clipboard
Copied
Hello. It is working now. Don't know what I did. Don't know whose recommendation did it. But thank you all for your assistance.