newbie to php - need some assistance?

dbahsee2002

New member
May 9, 2012
0
0
0
<form method="post" action="mailto:[email protected]>
<label for="name">Name:</label>
<input type="text" name="name" id="name" required placeholder="Name" />
<label for="name">Subject:</label>
<input type="text" name="subject" id="subject" required placeholder="Subject" />
<label for="email">Email:</label>
<input type="email" name="email" id="email" required placeholder="[email protected]" />
<label for="message">Message:</label>
<textarea name="message" id="message" required></textarea>
<input type="submit" value="Send Message">
</form>
Ok my question is that the way this code is right now , whenomeone hits the submit button on my page it automatically loads outlook, but id rather have it jsut go to whatever email service the person is using if someone could possibly help me out with that id really appreciate it
 
what do you mean by "whatever email service the person is using".

this 'action="mailto:[email protected] tells the form what to do when someone hits submit. right now its saying open up the default email client and use that to send it.

if you're using php the easiest thing to do would be to set the action to a php script and use the php mail() function to send the mail

http://php.net/manual/en/function.mail.php
 
Back
Top