I'm trying to pass two variables through the URL:

<a href='checkout.php?isOnfile=1&userid=$userid'>Click here</a>

isOnfile = 1 and
userid = $userid

It doesn't seem to work. Can anyone tell me how to do this? An example would be greatly appreciated. Thanks so much.

    I think it will probably be because in your php.ini file it hs the register_globals set to Off. change it to On and your problems will be solved.

      yeah the, $_GET[userid] works!! Thanks so much. I guess it's something to do with PHP 4.2

        Yes in PHP 4.2 register_globals is turned off by default in the php.ini, as piersk said.

          Write a Reply...