How do i make a form that doesn't open the e-mail client?
Expand Post »
i've made a website with a contact form, but everytime you click the send button it opens the computer default e-mail client. i know there is a way of doing this, but i dont know how.
I think it involves php and if it does can somebody show me how to do it, in simple terms (because i'm new to php),
Re: How do i make a form that doesn't open the e-mail client?
Right now you are using a mailto tag as the action for your form. If you want to use php, you need to have a php file as the action and use that php file to handle the information.
Re: How do i make a form that doesn't open the e-mail client?
ok, it doesn't have to be php, all it has to do is send it to a specified e-mail address without opening the users default e-mail client and then needing them to press send.
Re: How do i make a form that doesn't open the e-mail client?
You can do it pretty easily in PHP with the mail() function. To do this though you would need to change the action attribute on your form tag to your PHP script. Then construct the message in PHP and use the mail() function to send it. For more on mail() see W3Schools and the PHP.net Reference.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.