Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SENDING FORM

Status
Not open for further replies.

nivosh

MIS
May 8, 2000
38
IL
hi. what do i need to do to send a form to an e-mail address.<br>i tryed the asp method and the cgi one, but it wasn't working.<br>maybe u know a better method, or an easier way?<br>thenks<br>niv <p>NDCdesign<br><a href=mailto:nivosh@usa.net>nivosh@usa.net</a><br><a href= solutions</a><br>
 
Add this JS to your head in the HTML:<br><br>&lt;script language=&quot;Javascript&quot;&gt;<br>&lt;!--<br>function isReady(form){<br>ic = false;<br>if (CONDITIONS THAT MAKE YOUR FORM BE CORRECT) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ic=true;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var txt = form.YOURELEMENT.name & &quot; = &quot; & form.YOURELEMENT.value & &quot;&nbsp;&nbsp;&nbsp;&nbsp;&quot; & form.YOURELEMENT2.name & &quot; = &quot; & form.YOURELEMENT2.value & ... ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br>if (!ic){<br>alert('ERROR MESSAGE');<br>return false;<br>}<br>return true<br>}<br>//--&gt;<br>&lt;/script&gt;<br><br><br>Copy this as your form tag:<br><br>&lt;form onSubmit=&quot;return isReady(this); document.write('txt');&quot; method=&quot;post&quot; action=&quot;mailto:<A HREF="mailto:YOU@YOU.com">YOU@YOU.com</A>&quot; <br>&nbsp;&nbsp;&nbsp;&nbsp;ENCTYPE=&quot;text/plain&quot;&gt;<br><br>THAT IS FOR HTML, YOU DON'T EXPLAIN IF YOU WANT TO EMAIL A FLASH FORM OR HTML FORM. BUT IF YOU WANT THE FLASH WAY YOU NEED TO LOAD VARIABLES AND USE THE POST METHOD.<br><br>I HOPE THIS HELPED BUT IF NOT JUST WRITE AGAIN AND WE'LL HELP YOU WITH THE FLASH FORM.<br><br> <p>Fernando Regueiro<br><a href=mailto:ferhelping@yahoo.com>ferhelping@yahoo.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top