bzzrd2
01-17-2008, 12:19 AM
I'm trying to ad some additional fields to a PHP form. I can't get the field to come through on the form.
FROM html page:
<tr><td>Site Name:</td><td><input type="text" name="name" size="25" /></td></tr>
<tr><td>Site URL:</td><td><input type="text" name="siteurl" size="25" /></td></tr>
<tr><td>Email address:</td><td><input type="text" name="email" size="25" /></td></tr>
From the php form:
$messageproper =
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------------------------------------------\n" .
"Site Name: $name\n" .
"Site URL: $siteurl\n" .
"Email of sender: $email\n" .
"------------------------- COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper,
"From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" );
header( "Location: $thankyouurl" );
exit ;
The email comes through with the Site URL field blank as follows:
Site Name: buzzzzzzzzzz
Site URL:
Email of sender: abc@xxxxxxxx.ca
------------------------- COMMENTS -------------------------
kdoodf kdkkfdpkf pkdpkfpfkzdk/zdp
Can someone point me to what I am missing in the code to make the addition field "siteurl" work? Thank You.
FROM html page:
<tr><td>Site Name:</td><td><input type="text" name="name" size="25" /></td></tr>
<tr><td>Site URL:</td><td><input type="text" name="siteurl" size="25" /></td></tr>
<tr><td>Email address:</td><td><input type="text" name="email" size="25" /></td></tr>
From the php form:
$messageproper =
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------------------------------------------\n" .
"Site Name: $name\n" .
"Site URL: $siteurl\n" .
"Email of sender: $email\n" .
"------------------------- COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper,
"From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.08" );
header( "Location: $thankyouurl" );
exit ;
The email comes through with the Site URL field blank as follows:
Site Name: buzzzzzzzzzz
Site URL:
Email of sender: abc@xxxxxxxx.ca
------------------------- COMMENTS -------------------------
kdoodf kdkkfdpkf pkdpkfpfkzdk/zdp
Can someone point me to what I am missing in the code to make the addition field "siteurl" work? Thank You.