JoeComins
13-06-2006, 03:48 PM
I hate asking for help in anything, but here goes . . .
I have made a form handeler and form, curtesy of ThyBag.co.uk (L)
I've done something wrong, and now I only get emails with the topics, like Name, COntact Email, Contact Number, without the informationm with them
HELP ME PLEASE
contact.php :
<div class="content">
<div class="header"><div class="icon"></div><img src="images/content.gif" width="89" height="5" alt="Grolsch Content" /></div>
<p align="center"> <form name="form" id="form" method="post" action="formh.php">
<table width="95%" border="0">
<tr>
<td width="31%" valign="top">Name:</td>
<td width="69%"><input name="name" type="text" id="name" size="75" /></td>
</tr>
<tr>
<td valign="top">Email Address: </td>
<td><input name="email" type="text" id="email" size="75" /></td>
</tr>
<tr>
<td valign="top">Contact Number: </td>
<td><input name="number" type="text" id="number" size="75" /></td>
</tr>
<tr>
<td valign="top">Comments:</td>
<td><textarea name="comments" cols="75" rows="4" id="comments"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Contact Grolsch"> </td>
</tr>
</table> </p>
<p> </p>
</div>
formh.php
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$name = $_POST['Name'];
$email = $_POST['Email'];
$number = $_POST['Number'];
$comments = $_POST['Comments'];
$messig = "
Name: $name
\n
Email: $email
\n
Message: $number
\n
Ip: $comments
";
mail("comins2005********.co.uk", $subject, $messig);
Header("Location: TY.php");
}
else
{
echo 'ERROR';
}
?>
TY.php
<div class="content">
<div class="header"><div class="icon"></div><img src="images/content.gif" width="89" height="5" alt="Grolsch Content" /></div>
<p align="center">
THANKS
</p>
<p> </p>
</div>
Thanks
Joe Comins
I have made a form handeler and form, curtesy of ThyBag.co.uk (L)
I've done something wrong, and now I only get emails with the topics, like Name, COntact Email, Contact Number, without the informationm with them
HELP ME PLEASE
contact.php :
<div class="content">
<div class="header"><div class="icon"></div><img src="images/content.gif" width="89" height="5" alt="Grolsch Content" /></div>
<p align="center"> <form name="form" id="form" method="post" action="formh.php">
<table width="95%" border="0">
<tr>
<td width="31%" valign="top">Name:</td>
<td width="69%"><input name="name" type="text" id="name" size="75" /></td>
</tr>
<tr>
<td valign="top">Email Address: </td>
<td><input name="email" type="text" id="email" size="75" /></td>
</tr>
<tr>
<td valign="top">Contact Number: </td>
<td><input name="number" type="text" id="number" size="75" /></td>
</tr>
<tr>
<td valign="top">Comments:</td>
<td><textarea name="comments" cols="75" rows="4" id="comments"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Contact Grolsch"> </td>
</tr>
</table> </p>
<p> </p>
</div>
formh.php
<?php
if ($_SERVER['REQUEST_METHOD'] != 'GET'){
$name = $_POST['Name'];
$email = $_POST['Email'];
$number = $_POST['Number'];
$comments = $_POST['Comments'];
$messig = "
Name: $name
\n
Email: $email
\n
Message: $number
\n
Ip: $comments
";
mail("comins2005********.co.uk", $subject, $messig);
Header("Location: TY.php");
}
else
{
echo 'ERROR';
}
?>
TY.php
<div class="content">
<div class="header"><div class="icon"></div><img src="images/content.gif" width="89" height="5" alt="Grolsch Content" /></div>
<p align="center">
THANKS
</p>
<p> </p>
</div>
Thanks
Joe Comins