Jump to content


Photo

One URL parameter without a name


Best Answer requinix, 31 July 2013 - 05:51 PM

$_SERVER["QUERY_STRING"]

If you look hard at $_GET you'll see it has $_GET["AB32123"] = "" but don't try to use that. Go to the full post


  • Please log in to reply
2 replies to this topic

#1 james909

james909

    Advanced Member

  • Members
  • PipPipPip
  • 60 posts

Posted 31 July 2013 - 05:31 PM

My site currently uses one parameter in the URL like this:

 

http://www.mydomain....ramname=AB32123

 

I would like to remove the parameter name, so the URL is:

 

http://www.mydomain....folder/?AB32123

 

How would I then call use this parameter,

currently I use $_GET['paramname'] but without a name I am unsure how

 

I have tried:

$_GET

$_GET[]

 

but they both through up errors?

 

what is the correct way to get this paramter without a name



#2 requinix

requinix

    Hopeless Member

  • Moderators
  • 5,908 posts
  • LocationWA

Posted 31 July 2013 - 05:51 PM   Best Answer

$_SERVER["QUERY_STRING"]

If you look hard at $_GET you'll see it has $_GET["AB32123"] = "" but don't try to use that.

#3 james909

james909

    Advanced Member

  • Members
  • PipPipPip
  • 60 posts

Posted 31 July 2013 - 06:03 PM

Thank you requinix






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com