o "Press to continue";
> ?>
> -----Original Message-----
> From: db [mailto:[EMAIL PROTECTED]]
> Sent: 09 October 2002 15:58
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] problem passing variables...
>
>
> at first, it was as though no variables were
So you're doing this right?
";
$i++;
echo "Press to continue";
?>
-Original Message-
From: db [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2002 15:58
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] problem passing variables...
at first, it was as though no varia
I remember having met interpolation trouble with such code bits as
...passtest.php?i=".$i."\"/...
in echo "Press to continue";
What I do now is write it this way:
echo "Press to continue";
And everything works fine.
This has the additional advantage of clarity.
BTW, you have an erroneous slash
at first, it was as though no variables were passed so the output looked
like:
1
Press to continue
pressing to continue added '?i=2' to the address, but the output remained
the same.
then, as per Rich Gray's suggestion, i capitalized $_GET (from '$_get'),
which had weirder results. $i
What output *are* you getting?
(V)
"db" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> i've seen a lot of posts about this, but none helped. i've broken the
script
> down to its simplest components and still no luck.
>
>
> IF(!isset($_get['i'])) {
>
> $i = 1;
>
> }
>
> echo
What happens if you use $_GET['i'] instead of $_get['i']?
PHP vars are case sensitive.
Rich
-Original Message-
From: db [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2002 14:41
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] problem passing variables...
i've seen a lot
i've seen a lot of posts about this, but none helped. i've broken the script
down to its simplest components and still no luck.
";
$i++;
echo "Press to continue";
?>
i've tried using empty(), $_post['i'] and $i, but none will work. i've been
trying to pass the variable back to the page itsel