Problem with postfield elements
| From: | Balaji Ankem | Date: | Thu, 13 Jun 2002 06:18:10 +0000 |
| Subject: | Problem with postfield elements | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101907@lists.php.net to get a copy of this message | ||
Hi friend,
Just now I have installed php 4.2.1 on my windows NT machine.
Here I found I am not able to get the postfield values.
What would be the reason?
Thanks and Regards
Balaji.
Login.html
=================
<!DOCTYPE html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<SCRIPT language="Javascript">
function check()
{
document.login.method = "POST";
document.login.action="./auth.php";
document.login.submit();
return true;
}
</script>
</head>
<body>
<form name="login" onSubmit="return check()">
EmpName: <input type="text" size="10" name="emp_id"
maxlength="10" value="">
Password: <input type="password" size="10" name="emp_pass"
maxlength="10" value="">
<input type="submit" Value="LOGIN">
</form>
</body>
</html>
=========================
Auth.php
==================
<?php
echo "emp_id: ".$emp_id;
echo "emp_pass:".$emp_pass;
?>
==================
I got blank values..
Any help would be appreciable.
-Balaji
**************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ***************************************************************************
**************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ***************************************************************************