PHP question: can't do /index?a=2&b=3... [Solved]

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
jameshutchings
Posts: 8
Joined: Sun Mar 08, 2015 4:18 am

PHP question: can't do /index?a=2&b=3... [Solved]

Post by jameshutchings »

My server has recently changed the version of PHP it uses.

The games on my site rely on passing variables from one screen to the next in the URL. For example: http://www.apolitical.info/webgame?a=2&b=6&c=++-++.+ and so on.

The version of PHP they've changed to doesn't do this.

What should I do instead?
Last edited by jameshutchings on Fri Dec 18, 2015 3:38 am, edited 1 time in total.
Winawer
Posts: 180
Joined: Wed Aug 17, 2011 5:53 am

Re: PHP question: can't do /index?a=2&b=3...

Post by Winawer »

Use $_GET.
jameshutchings
Posts: 8
Joined: Sun Mar 08, 2015 4:18 am

Re: PHP question: can't do /index?a=2&b=3...

Post by jameshutchings »

Thanks!
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: PHP question: can't do /index?a=2&b=3...

Post by SpiritWebb »

jameshutchings wrote:Thanks!
Is this question solved? If so, please edit OP with [Solved] in the subject line. Thanks!! :mrgreen:
Image

Image
Post Reply

Return to “Beginner Help and Support”