Hi
New to site new to HTML, Have code for my form but not sure where to put email address in the code in order to have submit button work properly. Can anyone help?

Recommended Answers

All 4 Replies

Have look on w3schools tutorials and here is their example for form to email

Have look on w3schools tutorials and here is their example for form to email

Thanks Peter
My form was worked on by a friend and I cannot see where I need to put my email-he is not available to ask for a few weeks (off trekking) here is form as is but when you click on submit there is no valid email setup or response for reply-
Here is form as is.....

<p style="background-color: rgb(255, 255, 255);">We provide a variety of services for you. Our vendors are personally chosen to ensure the best available quotes possible. For assistance please call one of our friendly bilingual operators who are standing by 24 hours a day, 7 days a week!</p><form id="wstForm_Contact" name="Contact Form" action="%wstx.formmailerurl%" method="post" labelid="formLabel_ContactForm">

        

<table width="100%" cellspacing="1" cellpadding="5" border="1" bgcolor="#ffffff">

                 

<tbody>

<tr bgcolor="#efefef">

                          

<td align="center" style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 8pt; color: rgb(0, 0, 0); text-decoration: none; font-weight: normal;">

                                   

<table width="90%" cellspacing="0" cellpadding="3" border="0">

                                            

<tbody>

<tr>

                                                     

<td align="center" style="font-family: Arial,Helvetica,sans-serif; font-size: 12pt; font-weight: bold;">Contact Information<br /></td>

                                             </tr>

                                            

<tr>

                                                     

<td style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 8pt; color: rgb(0, 0, 0); text-decoration: none; font-weight: normal; padding-bottom: 10px;">

                                             <br /></td></tr>

                                    </tbody></table>

                                   

<table width="505" height="245" cellspacing="1" cellpadding="3" border="0" bgcolor="#ffffff">

                                            

<tbody>

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_First" controlid="formElement_First">First Name:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_First" name="First Name" labelid="formLabel_First" /></td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_Last" controlid="formElement_Last">Last Name:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_Last" name="Last Name" labelid="formLabel_Last" /></td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_Street1" controlid="formElement_Street1">Address Street 1:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_Street1" size="30" name="Address Street 1" labelid="formLabel_Street1" /></td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_Street2" controlid="formElement_Street2">Address Street 2:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_Street2" size="30" name="Address Street 2" labelid="formLabel_Street2" /></td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_City" controlid="formElement_City">City:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_City" name="City" labelid="formLabel_City" /></td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_Zip" controlid="formElement_Zip">Zip Code:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_Zip" size="5" name="Zip Code" maxlength="5" labelid="formLabel_Zip" /> (5 digits)</td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_State" controlid="formElement_State">State:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;">

                                                               <select id="formElement_State" name="State" labelid="formLabel_State">

                                                                        <option value="AL" selected="selected">AL</option>

                                                                        <option value="AK">AK</option>

                                                                        <option value="AZ">AZ</option>

                                                                        <option value="AR">AR</option>

                                                                        <option value="CA">CA</option>

                                                                        <option value="CO">CO</option>

                                                                        <option value="CT">CT</option>

                                                                        <option value="DE">DE</option>

                                                                        <option value="DC">DC</option>

                                                                        <option value="FL">FL</option>

                                                                        <option value="GA">GA</option>

                                                                        <option value="HI">HI</option>

                                                                        <option value="ID">ID</option>

                                                                        <option value="IL">IL</option>

                                                                        <option value="IN">IN</option>

                                                                        <option value="IA">IA</option>

                                                                        <option value="KS">KS</option>

                                                                        <option value="KY">KY</option>

                                                                        <option value="LA">LA</option>

                                                                        <option value="ME">ME</option>

                                                                        <option value="MD">MD</option>

                                                                        <option value="MA">MA</option>

                                                                        <option value="MI">MI</option>

                                                                        <option value="MN">MN</option>

                                                                        <option value="MS">MS</option>

                                                                        <option value="MO">MO</option>

                                                                        <option value="MT">MT</option>

                                                                        <option value="NE">NE</option>

                                                                        <option value="NV">NV</option>

                                                                        <option value="NH">NH</option>

                                                                        <option value="NJ">NJ</option>

                                                                        <option value="NM">NM</option>

                                                                        <option value="NY">NY</option>

                                                                        <option value="NC">NC</option>

                                                                        <option value="ND">ND</option>

                                                                        <option value="OH">OH</option>

                                                                        <option value="OK">OK</option>

                                                                        <option value="OR">OR</option>

                                                                        <option value="PA">PA</option>

                                                                        <option value="RI">RI</option>

                                                                        <option value="SC">SC</option>

                                                                        <option value="SD">SD</option>

                                                                        <option value="TN">TN</option>

                                                                        <option value="TX">TX</option>

                                                                        <option value="UT">UT</option>

                                                                        <option value="VT">VT</option>

                                                                        <option value="VA">VA</option>

                                                                        <option value="WA">WA</option>

                                                                        <option value="WV">WV</option>

                                                                        <option value="WI">WI</option>

                                                                        <option value="WY">WY</option>

                                                               </select>

                                                      </td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_DaytimePhone" controlid="formElement_DaytimePhone">Daytime Phone:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_DaytimePhone" name="Daytime Phone" labelid="formLabel_DaytimePhone" /></td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_EveningPhone" controlid="formElement_EveningPhone">Evening Phone:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_EveningPhone" name="Evening Phone" labelid="formLabel_EveningPhone" /></td>

                                             </tr>

                                            

<tr bgcolor="#e6e6e6">

<td style="font-size: 8pt; text-align: left;"><span controlid="formElement_e15ae" id="formLabel_e15ae">Service Required:</span></td>

<td style="font-size: 8pt; text-align: left;"><select labelid="formLabel_e15ae" name="service" id="formElement_e15ae"><option>Mortgage Quote</option><option>Insurance Quote</option><option>Automotive Quote</option><option>Real Estate Quote</option><option>Home Inprovement Quote</option><option>Mobile Quote</option></select></td></tr>

<tr bgcolor="#e6e6e6">

                                                     

<td style="font-size: 8pt; text-align: left;"><span id="formLabel_Email" controlid="formElement_Email">Email:</span></td>

                                                     

<td style="font-size: 8pt; text-align: left;"><input id="formElement_Email" name="Email" labelid="formLabel_Email" /></td>

                                             </tr>

                                            

 

                                    </tbody></table>

 

                                    <p><input type="submit" id="wstForm_Contact_Submit" value="Submit" onclick="return wstxSubmitForm(this);" /> <input type="reset" id="wstForm_Contact_Reset" value="Reset" /></p>

                           </td>

                  </tr>

         </tbody></table>

 

         <input type="hidden" id="FormMailerSubject" name="FormMailerSubject" value="Contact Form." /><input type="hidden" id="FormMailerRedirect" name="FormMailerRedirect" value="%wstx.project.BaseUrl%" />

</form>

<p>

<table width="100%" cellspacing="0" cellpadding="0" border="0">

<tbody>

<tr>

<td width="50%"><ul style="margin: 0pt 0pt 0pt 10px; padding: 0pt; list-style-type: circle; list-style-image: none; list-style-position: outside;"><li>Premium business services

</li><li>No contract is required

</li><li>Bilingual Agents <br /></li><li>Privacy Guaranteed<br /></li></ul></td>

<td><ul style="margin: 0pt 0pt 0pt 10px; padding: 0pt; list-style-type: circle; list-style-image: none; list-style-position: outside;"><li>SSL Encryption<br />

</li><li>24 hour customer service

</li><li>Toll Free Call<br />

</li><li>Vendor Code of Ethics<br /></li></ul></td></tr></tbody></table></p>

It is form declaration where you state your action where is the form submited

<form id="wstForm_Contact" name="Contact Form" action="%wstx.formmailerurl%" method="post" labelid="formLabel_ContactForm">

In your case the email action is declared in formmailerurl variable. You need to ask your friend in which file this can be changed

Peter
thanks again for the info and helpful suggestion but my friend is not contactable for several weeks (trekking in Thailand for a month) so I am on my own on this and way confused. aagh

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.