I remember having met interpolation trouble with such code bits as
...passtest.php?i=".$i."\"/...
in echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";

What I do now is write it this way:
echo "<a href='passtest.php?i={$i}'>Press to continue</a>";

And everything works fine.
This has the additional advantage of clarity.

BTW, you have an erroneous slash at the end of your opening <A>

HTH
Ignatius
____________________________________________
"db" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">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.
>
> <?php
>
> IF(!isset($_get['i'])) {
>
> $i = 1;
>
> }
>
> echo $i."<BR>";
>
> $i++;
>
> echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
>
> ?>
>
> 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 itself so that $i keeps
> increasing by 1 with each click.  not that there's a use for this other
than
> my figuring out how to use it.
>
> any thoughts?
>
> btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a
Win2kPro
> (SP3) machine.
>
> thx!
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to