hi,
i am new at php/apache. i am trying something really easy, but is not working out.
i have two files. F1.php F2.php. in F1.php i enter a name and password, in F2.php i print the name and password.
but the variable name would not print! $passwd, and $usr will not print. is there a reason for that? i am wondering if it is something in the apache settings.
thanks
<!--F1.php-->
<head>
</head>
<body>
<?php
print("the date is ".date("l dS of F Y h:i:s A"));?>
<form action = "F2.php" method = "get">
UserName : <input type="text" name ="usr"><br>
Password : <input type="password"name ="passwd"><br>
<input type="submit" name="submit" value="submit">
</form>
</body>
<!--F2.php-->
<head></head>
<body>
<?php
print("the username is $usr <br>");
print("the password is $passwd");
?>
</body>