JimG
03-29-2003, 03:32 PM
I dunno whether this is HTML or not, but anyway, what i wanna do is make the submit button email me, but...i dont want the user to have to use outlook to send me the form they've filled in.....get wat i mean?
|
Click to See Complete Forum and Search --> : Submit JimG 03-29-2003, 03:32 PM I dunno whether this is HTML or not, but anyway, what i wanna do is make the submit button email me, but...i dont want the user to have to use outlook to send me the form they've filled in.....get wat i mean? JimG 03-30-2003, 04:52 PM ahh Bugga! cgraz 04-01-2003, 05:20 PM If you have PHP installed, I can write a script for you. It would only be a couple lines max. Let me know. Cgraz JimG 04-02-2003, 07:01 AM ohhh....yes please that would be great cgraz 04-02-2003, 02:00 PM make your form tag look like this: <form method="post" action="process.php"> Then create a file process.php and put it in the same directory as your form page. Copy and paste the following ocde into process.php and modify the things I mention below.<? // address the email will be sent to (change the address between quotes) $to = "person@domain.com"; // message subject (change only what is between quotes) $subject = "Subject Here"; // replace you@yourdomain.com with the email you want to be // shown as the sender $headers = "From: you@yourdomain.com"; // don't modify anything below this line $msg = ""; foreach($_POST as $key => $value) { $msg .= ucfirst(str_replace("_", " ", $key)) . ": " . $value . "\n"; } mail($to, $subject, $msg, $headers); ?> Your submission was sent successfully! Cgraz JimG 04-04-2003, 12:53 PM that's great thanx 4 that m8 webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |