我有一个脚本作为附加捕捉。如何获取未使用php形式定义的变量?
<?php
$mailid = "[email protected]";
?>
<form name = "Register" method = "post" action = "test.php">
<table width="50%" border="1" align="center" cellpadding="3" cellspacing="1">
<tr>
<td align=center><strong>Enter your details to register </strong></td></tr></table>
<table width="50%" border="1" align="center" cellpadding="3" cellspacing="1">
<tr>
<td align=center>Name</td><td align=center>:</td><td align=center><input type = 'text' id='name' name ='name' ></td></tr>
<tr>
<td align=center>User Name</td><td align=center>:</td><td align=center><input type = 'text' name = 'uname' ></td></tr>
<tr>
<td align=center>Password</td><td align=center>:</td><td align=center><input type = 'password' name = 'password' ></td></tr>
<input type='submit' name='submit' value='Register'></td></tr>
</table>
</form>
在test.php我可以得到名称,用户名和密码。但我怎么能通过单击注册按钮通过“mailid”test.php?
你能帮我解决吗?
在此先感谢。