php初学者在线急等如何处理这一入门问题
我现在有两个php页面,第一个是做用户注册的,而第二个是第一个提交之后显示出用户注册时的整个信息清单的,但是总是由于变量说是没有定义的问题,搞的我焦头烂耳的,恳请那位帮我修改一下如何?(我前两天只是提出了问题,问题没有解决,分数却给扣了)我现在把两个页面的代码全部附在下面,希望那位能不能给我在调通了之后告诉我具体的解决办法?谢了!
//---index.php清单如下
<html>
<head>
<title>Index</title>
</head>
<body>
<h2 align="center">User Registration form</h2>
<form name="registration" method="post" action="confirm.php" enctype="mutipart/form-data" >
<table width="400" border="1" align="center" cellpadding="5"
cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td Width="47%">
Full name
</td>
<td colspan="2">
<input type="text" name="name" size="25" maxlength="25">
</td>
</tr>
<tr>
<td Width="47%" height="57">
Address
</td>
<td height="17" colspan="2">
<textarea name="address" cols="26" rows="4"> </textarea>
</td>
</tr>
<tr>
<td Width="47%">
Email
</td>
<td height="2" colspan="2">
<input type="text" name="email" size="25" maxlength="50">
</td>
</tr>
<tr>
<td Width="47%">
Password
</td>
<td height="2">
<input type="password" name="password" size="25" maxlength="15">
</td>
</tr>
<tr>
<td Width="47%">
Confirm Password
</td>
<td height="2">
<input type="password" name="cpassword" size="25" maxlength="15">
</td>
</tr>
<tr>
<td width="47%">
Data of Birth
</td>
<td height="2">
<select name=birth_month>
<option selected value=1>January
<option selected value=2>February
<option selected value=3>March
<option selected value=4>April
<option selected value=5>May
<option selected value=6>June
<option selected value=7>July
<option selected value=8>August
<option selected value=9>September
<option selected value=10>October
<option selected value=11>Novenber
<option selected value=12>December</option>
</select>
<select name=birth_day>
<option selected value=1>01
<option selected value=2>02
<option selected value=3>03
<option selected value=4>04
<option selected value=5>05
<option selected value=6>06
<option selected value=7>07
<option selected value=8>08
<option selected value=9>09
<option selected value=10>10
<option selected value=11>11
<option selected value=12>12
<option selected value=13>13
<option selected value=14>14
<option selected value=15>15
<option selected value=16>16
<option selected value=17>17
<option selected value=18>18
<option selected value=19>19
<option selected value=20>20
<option selected value=21>21
<option selected value=22>22
<option selected value=23>23
<option selected value=24>24
<option selected value=25>25
<option selected value=26>26
<option selected value=27>27
<option selected value=28>28
<option selected value=29>29
<option selected value=30>30
<option selected value=31>31</option>
</select>
<input maxlength=4 name=birth_year size=4>
</td>
</tr>
<tr>
<td Width="47%">
Gender
</td>
<td>
<table border=0>
<tr>
<td height="2" width="26%">
<input type="radio" name="gender" value="Male"> Male </td>
<td height="2" width="27%">
<input type="radio" name="gender" value="Female"> Female </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="%47">
Please choose topics of interest
</td>
<td height="2">
<table width="100%" border="0">
<tr>
<td>
<input type="checkbox" name="fiction" value="1">
Fiction</td>
<td>
<input type="checkbox" name="horror" value="1">
Horror</td>
<td>
</tr>
<tr>
<td>
<input type="checkbox" name="action" value="1">
Action</td>
<td>
<input type="checkbox" name="comedy" value="1">
Comedy</td>
</tr>
<td>
<tr>
<td>
<input type="checkbox" name="thriller" value="1">
Thriller</td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="47%" height="47">
<p align="right">Select hobbies </p>
<p align="right">(Selcect multiple choiced by holding the ctrl key and clicking on them one by one)</p>
</td>
<td height="47">
<p align="center">
<select name="hobbies[]" size="7" multiple>
<option value="Outdoor Sports">Outdoor Sports </option>
<option value="Adventure Sports">Adventure Sports </option>
<option value="Pop Music">Pop Music </option>
<option value="Rock Music">Rock Music </option>
<option value="Aggressive Music">Aggressive Music </option>
<option value="Photography">Photography </option>
</select>
</p>
</td>
</tr>
<tr>
<td align="center" colspan="3">
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</table>
</form>
</body>
</html>
下一个confirm.php的清单在楼下。