变量传不过来啊!
budai 2002-07-21 09:13:13 系统老是提示我,变量没有定义!
问题就是出在echo $add;这一行
一位老兄告诉我的改php.ini,把register_global设成On,这个方法也不行。
我该怎么办啊!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="布袋大师">
<META NAME="Email" CONTENT="net_walking@163.com">
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<div align="right">
<form name="classAddForm" method="post" action="../TEST.PHP">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" width="45%"><div align="right">类别名称: </div></td>
<td height="30"><input type="text" name="proclassname"></td>
</tr>
<tr>
<td height="30" width="45%"><div align="right">类别介绍: </div></td>
<td height="30"><input type="text" name="proclassshow"></td>
</tr>
<tr>
<td height="30" width="45%"><div align="right">类别图片: </div></td>
<td height="30"><input type="file" name="proclasspic"></td>
</tr>
<tr>
<td height="30"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input name="add" type="submit" value=" 添 加 ">
<input name="cancel" type="reset" value=" 取 消 ">
</div></td>
</tr>
</table>
</form>
<p> </p>
</div>
</body>
</html>
<?
echo $add;
?>