Alright so I think that if you pass a variable through a url like

<a href="page.php?var=foo">click me</a>

that on page.php I should be able to

 <?php echo ($var); ?>

and it should give me foo

However I get nothing - ANYONE?

NEVER MIND ALL I GOT IT

    if your using a newer version of php you have to use $_GET['variable'], so u should code ur page like this

    <? echo $_GET['var']; ?>

      dunno why but it only work for me without the 'userid' ??

      link001.php

      <a Href="link002.php?userid=ABC">ABC</a></br> 
      <a Href="link002.php?userid=EFG">EFG</a>
      

      link002.php

      <? echo $_GET[userid]; ?>
      

        I actually got it to work without $_GET by register globals on

          Write a Reply...