用户文件.php:
<form action="userrename.php" method="get">
<input type="hidden" name="rename" value="<?= $filecode?>">
<input type="submit" name="rename" id="bdelete" value="Rename"><br><br>
</form>
当我单击重命名按钮时,它得到:userrename.php?rename=pev8nERsJolwrCHyfQZujI1QHMDQHQX6V0ZMtQhsDi1aRgPeJsR&rename=rename
用户名.php:
<?php
if(empty($_GET['rename']))
echo "No GET variables";
else
echo $_GET['rename']; //here result is : rename
?>
我必须只在 if 语句中得到pev8nERsJolwrCHyfQZujI1QHMDQHQX6V0ZMtQhsDi1aRgPeJsR
这个rename
。我怎么能做到这一点,任何人都有 idei 或知道我对此感到困惑