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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email form generating error

Status
Not open for further replies.

ad2

Technical User
Dec 31, 2002
186
US
Hit the form post line has a proble that I can't find. IE 6.
Error:
Problems with this Web page might prevent it from displaying properly
Error: Object expected
Code: 0

Here is the line:
<form method=&quot;POST&quot; action=&quot;mailto:webmaster@op.org?subject=Suvey Form&quot; enctype=&quot;text/plain&quot; name=&quot;MailForm&quot; onSubmit=&quot;return filledOut()&quot;>


Also Netscape 6 just opens an email message when the submit button is hit. Why??
 
I believe the problem lies in the &quot;action&quot; part of your form. What you're doing is trying to call the native email client and this will give you unexpected and unstable results. It's never a good idea to use &quot;mailto:&quot; in a form action because of this, not to mention that it can open a whole slug of security problems. Suggest that you use a CGI script to send the results of your form. There's always a better way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top