No,

PHP makes get variables available in $HTTP_GET_VARS. Thus, Rosen can
access his variable as $HTTP_GET_VARS['rosen'].

If register_globals is true, the variable is also available in the
global scope as $rosen (as in Rosen's example).
If this does not work, it would seem that register_globals is not set.

Rosen, could you perhaps put something around the output in test1.php
and post that? Something like:

<? print(" The value of \$rosen is: $rosen ."); ?>

Also, please tell us which version of PHP you're using.

Cheers,
Ben

Ifrim Sorin wrote:
> 
> In test1.php you shoul have
> 
> <?
>     $qry=getenv("QUERY_STRING");
>     $rosen=substr($qry,6);
>     print("$rosen");
> ?>
> 
> Sorin Ifrim
> 
> Rosen <[EMAIL PROTECTED]> wrote in message
> 96tdvp$oo7$[EMAIL PROTECTED]">news:96tdvp$oo7$[EMAIL PROTECTED]...
> > Hi,
> > I have two simple php files:
> >
> > main.php:
> > <A HREF="test1.php?rosen=11">LIST</A>
> >
> > test1.php:
> >
> > <?print("$rosen");?>
> >
> >
> >
> > But this doesn't work !
> >
> > please HELP !
> >
> >
> >
> > Rsen Marinov
> >
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to