Jump to content

Passing Variable thru URL and maintaining Page Tabs


Vilcenia

Recommended Posts

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?
~V
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.