Jump to content

how to make a form and sends its content without using a maillclient


adredz

Recommended Posts

as the title says how? I know how to make a form but when I click the send button my outlook mail client pops up. how do I do it without requiring for a mail client? I know this is pretty basic that's google doesn't know it? Please help...

 

Here's my sample code:

 

<CENTER>

<FORM METHOD=POST ACTION="mailto:someone@$nailmail.com" ENCTYPE="text/plain">

<INPUT TYPE="text" NAME="username"> : name <BR>

<INPUT TYPE="text" NAME="email"> : email <BR>

comments <BR>

<TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard">

</TEXTAREA>

<INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">

<INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="index.html">

<BR>

<INPUT TYPE="submit" VALUE="Send">

<INPUT TYPE="reset" VALUE="Clear">

</FORM>

</CENTER>

<!-- END OF FORM -->

The reason it pops up your mail client is because you have set the action of the form to your mail address. You need to create a server-side script that will process the data and send it to your mail address. There are free scripts out there, google 'php contact form script' or something like that.

 

And it's not as simple as you are thinking.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.