MaGneTTo
06-02-2002, 07:58 PM
Hi guys, i was just wondering, i'm trying to study a little bit of php and i came up with this problem, let's say i have the following:
<form method="post" name="insert" action="confirm.php">
<input type="text" size="30" name="description">
</form>
since i have print the value of $description when the user loads confirm.php, i was just wondering that if i do like this
URL: localhost.localhost/page/confirm.php?description=test
it prints out "test" instead the value of the original variable, what i'm trying to do is to avoid the GET information from overwrinting the POST information, any ideas ? One other thing, it would be amazing to also avoid the user from accesing URL://localhost.localdomain/page/confirm.php without having passed through index.php first.
<form method="post" name="insert" action="confirm.php">
<input type="text" size="30" name="description">
</form>
since i have print the value of $description when the user loads confirm.php, i was just wondering that if i do like this
URL: localhost.localhost/page/confirm.php?description=test
it prints out "test" instead the value of the original variable, what i'm trying to do is to avoid the GET information from overwrinting the POST information, any ideas ? One other thing, it would be amazing to also avoid the user from accesing URL://localhost.localdomain/page/confirm.php without having passed through index.php first.