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!

Form not working

Status
Not open for further replies.

jockm

Technical User
Aug 13, 2002
41
GB
On one of my pages ( I have a form set up to collect information from the surfer and email to me.

I copied the code from Joe Burn's book on HTML. It is

<FORM METHOD=&quot;POST&quot; ACTION=&quot;mailto:jockm@kalikalos.org&quot; enctype=&quot;text/plain&quot;>
<TEXTAREA NAME=&quot;Send_Brochure_to&quot; Rows =6 Cols=30 Scrollbars=no>
</TEXTAREA>
<INPUT TYPE=submit VALUE=&quot;OK&quot;
</FORM>

However, the form doesnt send the infomation entered by the surfer. It gives a message saying that this is &quot;unauthorised&quot;.

Does anyone know what I need to do to make it work properly?

Thanks

jock
 
there are a few typos, it should look like...

<FORM METHOD=&quot;POST&quot; ACTION=&quot;mailto:jockm@kalikalos.org&quot; enctype=&quot;text/plain&quot;>
<TEXTAREA NAME=&quot;Send_Brochure_to&quot; Rows=6 Cols=30 Scrollbars=no>
</TEXTAREA>
<INPUT TYPE=submit VALUE=&quot;OK&quot;>
</FORM>

You must also check the security options on your browser and on your email client as, if using outlook, your email client will probably think that some virus is trying to access your email.
 
You should try and make it easier for yourself:

<FORM METHOD=&quot;POST&quot; ACTION=&quot;mailto:jockm@kalikalos.org&quot;>
<TEXTAREA NAME=&quot;Brochure&quot; Rows=6 Cols=30 Scrollbars=no>
</TEXTAREA>
<INPUT TYPE=submit VALUE=&quot;OK&quot;>
</FORM>

Don't add more writing than you have to, underscores are messy things to play with :)

sulfericacid
 
Thank you for picking up the typo in my FORM code. Now it seems to work from a couple of machines I have tried it on. It uses the surfer's email client to send an ordinary email.

I was actually wanting the form to somehow mysteriously communicate all the information typed in to me without using an email client. This would be important, say, when the surfer is trying to send the information from an internet cafe, where the browser would be configured not to allow email to be sent.

Is there a way I can modify my form to make it more general in this way?

thanks

jock
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top