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 -->

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.