rafiki
08-30-2006, 06:00 PM
:confused:
heres my form.php code
<BR><BR><BR><BR><form action="welcome.php" method="post" />
First Name: <input type="text" name="firstname" /><br />
Surname: <input type="text" name="surname" /><br />
DOB: <input type="text" name="DOB" /><br />
Year In School:
<select name="school_year" />
<option value="7" />7
<option value="8" />8
<option value="9" />9
<option value="10" />10
<option value="11" />11
</select />,<br />
Number of Siblings: <input type="text" name="siblings" /><br />
Bedtime: <select name="bedtime" /><br />
<option value="7" />7
<option value="8" />8
<option value="9" />9
<option value="10" />10
<option value="11" />11
<option value="other" />other
</select /><br />
Time Doing Home Work: <input type="text" name="homework" /><br />
Time watching T.V: <input type="text" name="tv" /><br />
Time Playing Computer/console: <input type="text" name="computer" /><br />
Time Spent With Family: <input type="text" name="family" /><br />
Time Spent With Friends: <input type="text" name="friends" /><br />
<input type="submit" />
</form />
and here is my welcome.php
<?php
echo "Welcome $_POST['firstname'] thanks for filling in out form";
?>
heres my form.php code
<BR><BR><BR><BR><form action="welcome.php" method="post" />
First Name: <input type="text" name="firstname" /><br />
Surname: <input type="text" name="surname" /><br />
DOB: <input type="text" name="DOB" /><br />
Year In School:
<select name="school_year" />
<option value="7" />7
<option value="8" />8
<option value="9" />9
<option value="10" />10
<option value="11" />11
</select />,<br />
Number of Siblings: <input type="text" name="siblings" /><br />
Bedtime: <select name="bedtime" /><br />
<option value="7" />7
<option value="8" />8
<option value="9" />9
<option value="10" />10
<option value="11" />11
<option value="other" />other
</select /><br />
Time Doing Home Work: <input type="text" name="homework" /><br />
Time watching T.V: <input type="text" name="tv" /><br />
Time Playing Computer/console: <input type="text" name="computer" /><br />
Time Spent With Family: <input type="text" name="family" /><br />
Time Spent With Friends: <input type="text" name="friends" /><br />
<input type="submit" />
</form />
and here is my welcome.php
<?php
echo "Welcome $_POST['firstname'] thanks for filling in out form";
?>