Re: Newbie needs some help.
| From: | Mr. BuNgL3 | Date: | Fri, 18 Oct 2002 11:48:31 +0000 |
| Subject: | Re: Newbie needs some help. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120488@lists.php.net to get a copy of this message | ||
I experienced the same problem yesterday and i know now what was the
problem... 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! i'll put a post asking if is that possible...
"Bo" <bacardi_bo@hotmail.com> wrote in message
news:20021017112530.36093.qmail@pb1.pair.com...
> I'm trying to make a simple calculate sheet for learning purposes. It
> concists of 2 files, one html and one php.
>
> The html uses a form with text-inputs and a submit button, and also a
> method="post" . When the submit button is pressed the variables of the
> text-inputs must be sent to the php file on wich the calculations are
done.
> But for some reason the php script doesn't receive the variables.
>
> I got the script from a learning book, and typed it over literally. It's
not
> a problem because i forgot a ; or something. Can it have anything to do
with
> settings in my IIS (i dont know if i am talking nonsense now =) )
>
> thx for your help
>
> greetz
>
>