Click to See Complete Forum and Search --> : Form Subit button


warchild23
09-13-2005, 03:43 PM
ok this might sound likea stupid question, but i hope u guy/gals can help.

What i made was a order form with a submit button. What i want it to do is that when the users clicks on the button submiting the form. it sends the information that the users has inputed to my email address.


<FORM action="order.php" method="post">

what i need is the acually php source to make it send to my email..
make this ez for me cause i am a noob..


thanks guys hope u can help

Sheldon
09-13-2005, 03:46 PM
this is a good page posted in a thread 3 or 4 before yours.
here (http://www.felgall.com/php2.htm)

Ask more questions once you have read that.

theuedimaster
09-13-2005, 06:39 PM
This should be order.php


<?php
$to = $_POST['user_email'];
$subject = 'the subject';
$message = $_POST['message'];

mail($to, $subject, $message);
?>