|
Posted by Seattlemx on 09/26/94 11:40
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.
===----------------------------------------------------------------------------------
went the people send me a comment about my web page i didn't get his
e-mail address,,,, i just get his name, subject, and boby text but
not his e-mail address can some one help me whats going on whit this
script !!!
them this the 2 part of the scrip
form.php
----------------------------------------------------------------------------------------------------
<BODY>
<FORM METHOD=POST ACTION="page.php">
Name: <INPUT TYPE=TEXT NAME="name">
Email Address: <INPUT TYPE=TEXT NAME="from">
Subjeto: <INPUT TYPE=TEXT NAME="subject">
Comments: <TEXTAREA NAME="body" ROWS=5 COLS=50
WRAP=PHYSICAL></TEXTAREA>
<INPUT TYPE=SUBMIT VALUE="SUBMIT FORM">
</BODY>
---------------------------------------------------------------------------------------
can some on e help me what i did wrone ....
thanks .......
[Back to original message]
|