I have a PHP Form that for the life of me I cannot get to pass variables to second page. Iven tried everything I can do with no luck. The variables are not passing to CheckUser.php.
FORM:
<?php
$Page = "Home";
?>
<?php
require "CheckUser.php";
?>
<div>
<form id="login-form" method="post" target="_self" autocomplete="off">
<label for="user">User Name</label>
<input type="text" name="User" required />
<label for="password">Password</label>
<input type="password" name="Password" required />
<input type="submit" value="Sign In"/>
<input type="hidden" name="Page" value="<?=$Page?>" />
</form>
</div>
CheckUser.php:
<?php
$Page = $_GET['Page'];
$Password = $_GET['Password'];
$User = $_GET['User'];
echo"Page: $Page <br />";
echo"Password: $Password <br />";
echo"User $User <br />";
?>
My Answer:
Rate this post
5 of 5 based on 3065 votesComments