我有html表单,但我无法将隐藏参数传递给下一页。我想将隐藏的表单传递给下一页,但我无法通过。无法将参数传递给php的表单?
我的形式
$dbHost = 'localhost'; // usually localhost
$dbUsername = 'xxx';
$dbPassword = 'xxxx';
$dbDatabase = 'xxxx';
$db = mysql_connect($dbHost, $dbUsername, $dbPassword) or die ("Unable to connect to Database Server.");
mysql_select_db ($dbDatabase, $db) or die ("Could not select database.");
$clientid=$_GET['clientid'];
if($clientid!=""){
$sql = mysql_query("SELECT `clientid` , `clientname`
FROM `client_list`
WHERE `clientid` = '$clientid'");
while($rows=mysql_fetch_array($sql))
{
if($alt == 1)
{
echo '
';$alt = 0;
}
else
{
echo '
';$alt = 1;
}
echo '
'.$rows["clientid"].''.$rows["clientname"].'';}
}
?>
,我尝试打印在下一页这样。
$clientid=$_GET['clientid'];
print $clientid;
但它不打印任何人告诉我,我要去哪里错了谢谢。
2014-01-08
arok