View Single Post
  #1  
Old 08-14-2006, 01:36 PM
utseya utseya is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
utseya is on a distinguished road
Default PHP version 5.1.4... code upgrade pointers anyone?

I have a lil problem I can't seem to sort out.... any advice would be greatly appreciated

On a contact I have used this simple code to produce a form:


Code:
<form method="POST" action="thanks.php">
Name: <input type="TEXT" name="name">
Email: <input type="TEXT" name="email">
<input type="SUBMIT" name="Submit" value="ok">
</form>
....and on my thanks.php page I have entered the following code to send an email to a specified address:


Code:
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "email@address";
$mailsubj = "Form submission";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - PHP version 5.1.4... code upgrade pointers anyone?
View Single Post
  #1  
Old 08-14-2006, 01:36 PM
utseya utseya is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
utseya is on a distinguished road
Default PHP version 5.1.4... code upgrade pointers anyone?

I have a lil problem I can't seem to sort out.... any advice would be greatly appreciated

On a contact I have used this simple code to produce a form:


Code:
<form method="POST" action="thanks.php">
Name: <input type="TEXT" name="name">
Email: <input type="TEXT" name="email">
<input type="SUBMIT" name="Submit" value="ok">
</form>
....and on my thanks.php page I have entered the following code to send an email to a specified address:


Code:
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "email@address";
$mailsubj = "Form submission";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote