Jseb
14-04-2005, 01:10 AM
Hi everyone! I wrote down a Form Contact with 2 page to send it to a email!
Here the first page Form!
<form action="contactme.php" mehod="post">
<table border="1" cellspacing="1" width="100%" id="AutoNumber20" style="border-width: 0">
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Habbo Name:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<input type="text" name="name" size="20"></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Habbo Hotel:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<font face="Verdana" size="1"><select size="1" name="Hotel">
<option selected>-- Select One --</option>
<option>Habbhotel.Com</option>
<option>HabboHotel.Co.Uk</option>
<option>HabboHotel.Ca</option>
<option>Habbohotel.Au.Com</option>
<option>Other</option>
</select></font></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Email:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<input type="text" name="Email" size="20"></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Subject:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<input type="text" name="Subject" size="20"></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Message:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<textarea rows="6" name="comments" cols="29"></textarea></td>
</tr>
</table>
<p><input type="submit" value="Submit" name="B1"></p>
</form>
And here the Contactme.php!
<?PHP
$to = "[email protected]";
$re = "Contact Us";
$hotel = $Hotel;
$mail = $Email;
$msg = $comments;
$name = $name;
$sub = $Subject;
mail($to,$name,$hotel,$mail,$msg);
?>
Unfortunotly its doesnt bring me all the information! That i want and i believe my mistake will be on contactme.php page! But why and how?
BTW i am new at php! I just learn how today how to save a page in php with frontpage! But i am a fast learning and since a i do a lot of c++ and i am expert at it! I understood the fact that they were variable giveway + mail is what will be find in the mail!
Here the first page Form!
<form action="contactme.php" mehod="post">
<table border="1" cellspacing="1" width="100%" id="AutoNumber20" style="border-width: 0">
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Habbo Name:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<input type="text" name="name" size="20"></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Habbo Hotel:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<font face="Verdana" size="1"><select size="1" name="Hotel">
<option selected>-- Select One --</option>
<option>Habbhotel.Com</option>
<option>HabboHotel.Co.Uk</option>
<option>HabboHotel.Ca</option>
<option>Habbohotel.Au.Com</option>
<option>Other</option>
</select></font></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Email:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<input type="text" name="Email" size="20"></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Subject:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<input type="text" name="Subject" size="20"></td>
</tr>
<tr>
<td width="10%" style="border-style: none; border-width: medium"><font face="Verdana" size="1" color="#ECECFF">Message:</font></td>
<td width="1%" style="border-style: none; border-width: medium"> </td>
<td width="89%" style="border-style: none; border-width: medium">
<textarea rows="6" name="comments" cols="29"></textarea></td>
</tr>
</table>
<p><input type="submit" value="Submit" name="B1"></p>
</form>
And here the Contactme.php!
<?PHP
$to = "[email protected]";
$re = "Contact Us";
$hotel = $Hotel;
$mail = $Email;
$msg = $comments;
$name = $name;
$sub = $Subject;
mail($to,$name,$hotel,$mail,$msg);
?>
Unfortunotly its doesnt bring me all the information! That i want and i believe my mistake will be on contactme.php page! But why and how?
BTW i am new at php! I just learn how today how to save a page in php with frontpage! But i am a fast learning and since a i do a lot of c++ and i am expert at it! I understood the fact that they were variable giveway + mail is what will be find in the mail!