Passing parameter to another page
Posted: 05. May 2006 15:32
Hello friends.
I an new to xampp (switched from php home edition). Is seems great.
Can anyone help with this problem.
I start "index.php" with a form (user and password) and call "login.php"
but in login.php I have no parameters. Thanks forward
<?php INDEX.PHP
//========== ?>
<html><head></head><body>
<form method="get" action="login.php">
User:<br> <input type=text name="uid" size=20> <br>
Pswd:<br> <input type=password name="pwd" size=20>
<br>
<input type=submit name=ok value="LogIn">
</form>
</body></html>
<?php LOGIN.PHP
//========== ?>
<html><head></head><body>
<?echo "Name (uid): ".$uid."<br>"?>
<?echo "Pssw (pwd): ".$pwd."<br>"?>
</body></html>
kysel.miroslav@zoznam.sk
I an new to xampp (switched from php home edition). Is seems great.
Can anyone help with this problem.
I start "index.php" with a form (user and password) and call "login.php"
but in login.php I have no parameters. Thanks forward
<?php INDEX.PHP
//========== ?>
<html><head></head><body>
<form method="get" action="login.php">
User:<br> <input type=text name="uid" size=20> <br>
Pswd:<br> <input type=password name="pwd" size=20>
<br>
<input type=submit name=ok value="LogIn">
</form>
</body></html>
<?php LOGIN.PHP
//========== ?>
<html><head></head><body>
<?echo "Name (uid): ".$uid."<br>"?>
<?echo "Pssw (pwd): ".$pwd."<br>"?>
</body></html>
kysel.miroslav@zoznam.sk