Configuration problem i guess...
| From: | Mr. BuNgL3 | Date: | Fri, 18 Oct 2002 11:51:25 +0000 |
| Subject: | Configuration problem i guess... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-120489@lists.php.net to get a copy of this message | ||
I experienced a problem yesterday and i know now what was the problem but i
want to know if there is any way to do this like the books tells u to do...
check it out...
i had a html with a login form and when i click submit it calls login.php
with this code...
<?
$logintxt = $HTTP_POST_VARS['logintxt'];
$passwdtxt= $HTTP_POST_VARS['passwdtxt'];
if (!$logintxt || !$passwdtxt) {
include('login.htm');
}
else {
echo "
<html>
<title>Updating</title>
<body><center>Sistema em construção</center></body>
</html>
";
}
?>
u need the two first lines to get the html variables passed to php...
i was wondering if is any configuration to make in apache or php to avoid
this problem? If is it possible to php get the html form variables directly
without typing this two lines...
$logintxt = $HTTP_POST_VARS['logintxt'];
$passwdtxt= $HTTP_POST_VARS['passwdtxt'];~
Thanks