Jump to content


Photo

Passing and receiving url variables


  • Please log in to reply
2 replies to this topic

#1 Stevis2002

Stevis2002
  • Members
  • PipPipPip
  • Advanced Member
  • 98 posts

Posted 26 April 2006 - 11:42 AM

Please can sombody help me with this?

On one page i want a list of links which will each pass a variable along with the url..eg..

[a href=\"http://sdrgrestg.com/view.php?id==n\" target=\"_blank\"]http://sdrgrestg.com/view.php?id==n[/a]

Then i want the page that views to get all the entries in the db which start with 'n'

I have created a recordest on the view page, and optioned it to get all records from a_group and b_group, filter them by url variable, and list by a_group, ascending first, but it doesn't seem to work when i pass the variable to it.

Thanks

#2 onepixel

onepixel
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 26 April 2006 - 08:46 PM

Your url should be :
[a href=\"http://sdrgrestg.com/view.php?id=n\" target=\"_blank\"]http://sdrgrestg.com/view.php?id=n[/a]
instead otherwise the variable passed will be "=n" intead of just "n"

Hope this helps
<a href="http://www.saheltech.com">PHP Programming - WordPress Blog Customization</a>

#3 Stevis2002

Stevis2002
  • Members
  • PipPipPip
  • Advanced Member
  • 98 posts

Posted 27 April 2006 - 09:36 PM

Ok thanks, I'll give it a go.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users