Jump to content


Passing Variable thru URL and maintaining Page Tabs

  • Please log in to reply
1 reply to this topic

#1 Vilcenia

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 25 April 2006 - 01:47 PM

I hope someone can help me. I am passing a variable via URL to another page. The page has fields that are in Page Tabs. The data is populating in the fields correctly, but I the page tabs are not working and I keep getting this Internet Explorer
error: 'QUERY_SEARCH_ARG' is undefined
code: 0

I tried using Firefox and it doesn't work using that browser neither.

My code for passing the variable:
echo' <td align="left"><a href="student.php?id=' . $sid. '">' . $sid. '</a></td>';

To get the value from the passed argument, I use: $sid = ($_REQUEST['id']);

So is there anything I should be doing when passing a variable to maintain the page tab form?

#2 wisewood

  • Members
  • PipPipPip
  • Advanced Member
  • 226 posts
  • LocationRotherham, England

Posted 25 April 2006 - 02:00 PM

i would use this;

echo "<td align=left><a href=student.php?id=$_GET[id]>$_GET[id]</a></td>";

My prefered way to echo data. The " and ' aren't really necessary in the html you've got there, so might as well just leave it out.
wisewood: proven fact, I am both wise, and wooden.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users