i want to mail a form info. on submit

Results 1 to 3 of 3

Thread: i want to mail a form info. on submit

  1. #1
    Join Date
    Dec 1969
    Posts
    189

    Default i want to mail a form info. on submit

    i want to send a mail for all the information typed in a form<BR>on submit

  2. #2
    Join Date
    Dec 1969
    Posts
    1,019

    Default RE: i want to mail a form info. on submit

    check out:<BR>http://www.4guysfromrolla.com/webtech/071599-1.shtml

  3. #3
    Join Date
    Dec 1969
    Posts
    17

    Default RE: i want to mail a form info. on submit

    An easy way of doing it is:<BR>&#060;form ONSUBMIT="return CheckInput(document.myForm)" NAME="myForm" action="mailto:yourname@yourplace.com" METHOD="post" NAME="myForm"&#062; The onsubmit bit calls a javascript function to check the form is filled in. The function looks something like this. Just change Name Tel etc to your form field names and myForm of course.<BR>&#060;script Language="JavaScript"&#062;<BR>function CheckInput(myForm){<BR><BR> if ((myForm.Name.value == "")&#124&#124(myForm.Tel.value == "")&#124&#124<BR> (myForm.Address.value == "")&#124&#124(myForm.City.value == "")){<BR> alert("You forgot to fill in the form correctly.Please check it again!");<BR>return false;<BR>}<BR> else<BR>{<BR> <BR>return true;<BR>}<BR>}<BR> &#060;/script&#062;<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •