|
Posted by J.O. Aho on 09/28/89 11:40
Seattlemx wrote:
> hi .. i just start learning php and I'm doing my first scrip !!! but it
> doesn't work .....
> this is the script
>
>
> page.php
> ----------------------------------------------------------------------------------------
> <?
> $to = "me-mail@gmail.com";
> $name = $_POST['name'];
> $from = $_POST['from'];
> $subject = $_POST['subject'];
> $body = $_POST['body'];
>
> mail($to, $subject, $body, $from, $name);
>
> ?>
>
> Email has been sent.
<?
$to = "me-mail@gmail.com";
$name = $_POST['name'];
$from = $_POST['from'];
$subject = $_POST['subject'];
$body = $_POST['body'];
$from_header=stripslashes('From: '.$name.'<'.$from.'>') . "\r\n"
mail($to, $subject, $body, $from_header);
//Aho
[Back to original message]
|