神农架2日游:用户注册问题,急!!!

来源:百度文库 编辑:高考问答 时间:2024/05/05 19:52:10
问一下,我做的会员注册页,填完信息注册出现下面问题,请问为什么呀?

注册成功!
下面是你的注册资料:
用户名:
Notice: Use of undefined constant ID - assumed 'ID' in C:\Inetpub\wwwroot\bysj\regok.php on line 27

真实姓名:
Notice: Use of undefined constant name - assumed 'name' in C:\Inetpub\wwwroot\bysj\regok.php on line 32

性别:
Notice: Use of undefined constant sex - assumed 'sex' in C:\Inetpub\wwwroot\bysj\regok.php on line 37

种类:
Notice: Use of undefined constant kind - assumed 'kind' in C:\Inetpub\wwwroot\bysj\regok.php on line 42

部门:
Notice: Use of undefined constant DP - assumed 'DP' in C:\Inetpub\wwwroot\bysj\regok.php on line 47

Email:
Notice: Use of undefined constant email - assumed 'email' in C:\Inetpub\wwwroot\bysj\regok.php on line 52

城市:
Notice: Use of undefined constant city - assumed 'city' in C:\Inetpub\wwwroot\bysj\regok.php on line 57

电话:
Notice: Use of undefined constant tel - assumed 'tel' in C:\Inetpub\wwwroot\bysj\regok.php on line 65

<font color="null" size="null">null</font>

intval(ID)

可以使用intval()函数将非格式良好的数据转换成良好的类型,这样就可以了!