User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,052 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,454 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 407 | Replies: 4
Reply
Join Date: Jun 2008
Posts: 3
Reputation: aussie33 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aussie33 aussie33 is offline Offline
Newbie Poster

newbie needs code help for form

  #1  
Jun 16th, 2008
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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,222
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: newbie needs code help for form

  #2  
Jun 16th, 2008
Have look on w3schools tutorials and here is their example for form to email
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Jun 2008
Posts: 3
Reputation: aussie33 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aussie33 aussie33 is offline Offline
Newbie Poster

Re: newbie needs code help for form

  #3  
Jun 16th, 2008
Originally Posted by peter_budo View Post
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.....

  1. <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">
  2.  
  3.  
  4.  
  5. <table width="100%" cellspacing="1" cellpadding="5" border="1" bgcolor="#ffffff">
  6.  
  7.  
  8.  
  9. <tbody>
  10.  
  11. <tr bgcolor="#efefef">
  12.  
  13.  
  14.  
  15. <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;">
  16.  
  17.  
  18.  
  19. <table width="90%" cellspacing="0" cellpadding="3" border="0">
  20.  
  21.  
  22.  
  23. <tbody>
  24.  
  25. <tr>
  26.  
  27.  
  28.  
  29. <td align="center" style="font-family: Arial,Helvetica,sans-serif; font-size: 12pt; font-weight: bold;">Contact Information<br /></td>
  30.  
  31. </tr>
  32.  
  33.  
  34.  
  35. <tr>
  36.  
  37.  
  38.  
  39. <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;">
  40.  
  41. <br /></td></tr>
  42.  
  43. </tbody></table>
  44.  
  45.  
  46.  
  47. <table width="505" height="245" cellspacing="1" cellpadding="3" border="0" bgcolor="#ffffff">
  48.  
  49.  
  50.  
  51. <tbody>
  52.  
  53. <tr bgcolor="#e6e6e6">
  54.  
  55.  
  56.  
  57. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_First" controlid="formElement_First">First Name:</span></td>
  58.  
  59.  
  60.  
  61. <td style="font-size: 8pt; text-align: left;"><input id="formElement_First" name="First Name" labelid="formLabel_First" /></td>
  62.  
  63. </tr>
  64.  
  65.  
  66.  
  67. <tr bgcolor="#e6e6e6">
  68.  
  69.  
  70.  
  71. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_Last" controlid="formElement_Last">Last Name:</span></td>
  72.  
  73.  
  74.  
  75. <td style="font-size: 8pt; text-align: left;"><input id="formElement_Last" name="Last Name" labelid="formLabel_Last" /></td>
  76.  
  77. </tr>
  78.  
  79.  
  80.  
  81. <tr bgcolor="#e6e6e6">
  82.  
  83.  
  84.  
  85. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_Street1" controlid="formElement_Street1">Address Street 1:</span></td>
  86.  
  87.  
  88.  
  89. <td style="font-size: 8pt; text-align: left;"><input id="formElement_Street1" size="30" name="Address Street 1" labelid="formLabel_Street1" /></td>
  90.  
  91. </tr>
  92.  
  93.  
  94.  
  95. <tr bgcolor="#e6e6e6">
  96.  
  97.  
  98.  
  99. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_Street2" controlid="formElement_Street2">Address Street 2:</span></td>
  100.  
  101.  
  102.  
  103. <td style="font-size: 8pt; text-align: left;"><input id="formElement_Street2" size="30" name="Address Street 2" labelid="formLabel_Street2" /></td>
  104.  
  105. </tr>
  106.  
  107.  
  108.  
  109. <tr bgcolor="#e6e6e6">
  110.  
  111.  
  112.  
  113. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_City" controlid="formElement_City">City:</span></td>
  114.  
  115.  
  116.  
  117. <td style="font-size: 8pt; text-align: left;"><input id="formElement_City" name="City" labelid="formLabel_City" /></td>
  118.  
  119. </tr>
  120.  
  121.  
  122.  
  123. <tr bgcolor="#e6e6e6">
  124.  
  125.  
  126.  
  127. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_Zip" controlid="formElement_Zip">Zip Code:</span></td>
  128.  
  129.  
  130.  
  131. <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>
  132.  
  133. </tr>
  134.  
  135.  
  136.  
  137. <tr bgcolor="#e6e6e6">
  138.  
  139.  
  140.  
  141. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_State" controlid="formElement_State">State:</span></td>
  142.  
  143.  
  144.  
  145. <td style="font-size: 8pt; text-align: left;">
  146.  
  147. <select id="formElement_State" name="State" labelid="formLabel_State">
  148.  
  149. <option value="AL" selected="selected">AL</option>
  150.  
  151. <option value="AK">AK</option>
  152.  
  153. <option value="AZ">AZ</option>
  154.  
  155. <option value="AR">AR</option>
  156.  
  157. <option value="CA">CA</option>
  158.  
  159. <option value="CO">CO</option>
  160.  
  161. <option value="CT">CT</option>
  162.  
  163. <option value="DE">DE</option>
  164.  
  165. <option value="DC">DC</option>
  166.  
  167. <option value="FL">FL</option>
  168.  
  169. <option value="GA">GA</option>
  170.  
  171. <option value="HI">HI</option>
  172.  
  173. <option value="ID">ID</option>
  174.  
  175. <option value="IL">IL</option>
  176.  
  177. <option value="IN">IN</option>
  178.  
  179. <option value="IA">IA</option>
  180.  
  181. <option value="KS">KS</option>
  182.  
  183. <option value="KY">KY</option>
  184.  
  185. <option value="LA">LA</option>
  186.  
  187. <option value="ME">ME</option>
  188.  
  189. <option value="MD">MD</option>
  190.  
  191. <option value="MA">MA</option>
  192.  
  193. <option value="MI">MI</option>
  194.  
  195. <option value="MN">MN</option>
  196.  
  197. <option value="MS">MS</option>
  198.  
  199. <option value="MO">MO</option>
  200.  
  201. <option value="MT">MT</option>
  202.  
  203. <option value="NE">NE</option>
  204.  
  205. <option value="NV">NV</option>
  206.  
  207. <option value="NH">NH</option>
  208.  
  209. <option value="NJ">NJ</option>
  210.  
  211. <option value="NM">NM</option>
  212.  
  213. <option value="NY">NY</option>
  214.  
  215. <option value="NC">NC</option>
  216.  
  217. <option value="ND">ND</option>
  218.  
  219. <option value="OH">OH</option>
  220.  
  221. <option value="OK">OK</option>
  222.  
  223. <option value="OR">OR</option>
  224.  
  225. <option value="PA">PA</option>
  226.  
  227. <option value="RI">RI</option>
  228.  
  229. <option value="SC">SC</option>
  230.  
  231. <option value="SD">SD</option>
  232.  
  233. <option value="TN">TN</option>
  234.  
  235. <option value="TX">TX</option>
  236.  
  237. <option value="UT">UT</option>
  238.  
  239. <option value="VT">VT</option>
  240.  
  241. <option value="VA">VA</option>
  242.  
  243. <option value="WA">WA</option>
  244.  
  245. <option value="WV">WV</option>
  246.  
  247. <option value="WI">WI</option>
  248.  
  249. <option value="WY">WY</option>
  250.  
  251. </select>
  252.  
  253. </td>
  254.  
  255. </tr>
  256.  
  257.  
  258.  
  259. <tr bgcolor="#e6e6e6">
  260.  
  261.  
  262.  
  263. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_DaytimePhone" controlid="formElement_DaytimePhone">Daytime Phone:</span></td>
  264.  
  265.  
  266.  
  267. <td style="font-size: 8pt; text-align: left;"><input id="formElement_DaytimePhone" name="Daytime Phone" labelid="formLabel_DaytimePhone" /></td>
  268.  
  269. </tr>
  270.  
  271.  
  272.  
  273. <tr bgcolor="#e6e6e6">
  274.  
  275.  
  276.  
  277. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_EveningPhone" controlid="formElement_EveningPhone">Evening Phone:</span></td>
  278.  
  279.  
  280.  
  281. <td style="font-size: 8pt; text-align: left;"><input id="formElement_EveningPhone" name="Evening Phone" labelid="formLabel_EveningPhone" /></td>
  282.  
  283. </tr>
  284.  
  285.  
  286.  
  287. <tr bgcolor="#e6e6e6">
  288.  
  289. <td style="font-size: 8pt; text-align: left;"><span controlid="formElement_e15ae" id="formLabel_e15ae">Service Required:</span></td>
  290.  
  291. <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>
  292.  
  293. <tr bgcolor="#e6e6e6">
  294.  
  295.  
  296.  
  297. <td style="font-size: 8pt; text-align: left;"><span id="formLabel_Email" controlid="formElement_Email">Email:</span></td>
  298.  
  299.  
  300.  
  301. <td style="font-size: 8pt; text-align: left;"><input id="formElement_Email" name="Email" labelid="formLabel_Email" /></td>
  302.  
  303. </tr>
  304.  
  305.  
  306.  
  307.  
  308.  
  309. </tbody></table>
  310.  
  311.  
  312.  
  313. <p><input type="submit" id="wstForm_Contact_Submit" value="Submit" onclick="return wstxSubmitForm(this);" /> <input type="reset" id="wstForm_Contact_Reset" value="Reset" /></p>
  314.  
  315. </td>
  316.  
  317. </tr>
  318.  
  319. </tbody></table>
  320.  
  321.  
  322.  
  323. <input type="hidden" id="FormMailerSubject" name="FormMailerSubject" value="Contact Form." /><input type="hidden" id="FormMailerRedirect" name="FormMailerRedirect" value="%wstx.project.BaseUrl%" />
  324.  
  325. </form>
  326.  
  327. <p>
  328.  
  329. <table width="100%" cellspacing="0" cellpadding="0" border="0">
  330.  
  331. <tbody>
  332.  
  333. <tr>
  334.  
  335. <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
  336.  
  337. </li><li>No contract is required
  338.  
  339. </li><li>Bilingual Agents <br /></li><li>Privacy Guaranteed<br /></li></ul></td>
  340.  
  341. <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 />
  342.  
  343. </li><li>24 hour customer service
  344.  
  345. </li><li>Toll Free Call<br />
  346.  
  347. </li><li>Vendor Code of Ethics<br /></li></ul></td></tr></tbody></table></p>
Last edited by peter_budo : Jun 17th, 2008 at 2:42 am. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,222
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: newbie needs code help for form

  #4  
Jun 17th, 2008
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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Jun 2008
Posts: 3
Reputation: aussie33 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
aussie33 aussie33 is offline Offline
Newbie Poster

Re: newbie needs code help for form

  #5  
Jun 23rd, 2008
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 11:51 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC