(login.php)
if ($index=="s")
{
header( "Location: http://192.168.0.220/cms/admin/super_admin/sad_compinfo.php");
echo ("<form name=\"user\" method=\"post\" action=\"http://192.168.0.220/cms/admin/super_admin/sad_compinfo.php>");
echo ("<input type=\"hidden\" name=\"username\" value='".$user."'>");
echo ("</form>");
}
*i not sure where i the code i use it, whether it is true or wrong?
(sad_compinfo.php)-part of the source
<?php
//session_start();
$userid=$_POST['user'];
echo ("$userid");
?>
now i tried, but when user key in the username and password
from login.php, it suppose to send the username to
sad_compinfo.php but when i refer to sad_compinfo.php, none of
the username come out.
Why, what happend? seem like the $user not send to
sad_compinfo.php.
Do you have any comment?
Thanks.