I have set up my first test PHP. form, the domain is arbico.awardspace.com
The setting for the mail path is this, is everything correct??
I have a free acount...
Sendmail path /usr/sbin/sendmail (SMTP is disabled for your hosting account)
I first set up my form feedback page witht he following HTML code on it:
%26lt;form method=%26quot;post%26quot; action=%26quot;sendmail.php%26quot;%26gt;
Email: %26lt;input name=%26quot;email%26quot; type=%26quot;text%26quot; /%26gt;
Message:
%26lt;textarea name=%26quot;message%26quot; rows=%26quot;15%26quot; cols=%26quot;40%26quot;%26gt;
%26lt;/textarea%26gt;
%26lt;input type=%26quot;submit%26quot; /%26gt;
%26lt;/form%26gt;
Then I made a notepad called %26quot;sendmail.php%26quot; and i set the form up to send it to my email address and then go thorugh to google. Here is the code I put into the notepad;
%26lt;?php
$email = $_REQUEST[%26#039;email%26#039;] ;
$message = $_REQUEST[%26#039;message%26#039;] ;
mail( %26quot;bentonere06@googlemail.com%26quot;, %26quot;Feedback Form Results%26quot;,
$message, %26quot;From: $email%26quot; );
header( %26quot;Location: http://www.google.com%26quot; );
?%26gt;
Everything seems to work well on it but i%26#039;m just NOT revieing any email ??
PHP form with FREE hosting acount ????
Try changing
$email = $_REQUEST[%26#039;email%26#039;] ;
$message = $_REQUEST[%26#039;message%26#039;] ;
to
$email = $_POST[%26#039;email%26#039;] ;
$message = $_POST[%26#039;message%26#039;] ;
since the form method is post - %26lt;form method=%26quot;post%26quot;%26gt;
I can%26#039;t say for sure if that%26#039;s the problem, but that%26#039;s how my email forms have always been coded and it%26#039;s worth a shot. Good luck!
PHP form with FREE hosting acount ????
chck out www intl.co.nr
No comments:
Post a Comment