Log in

View Full Version : PHP URL Info



TimFA
12-28-2007, 11:26 PM
Ok, I can't really think how you'd word this, but thats the best I can do.

Problem:
Ok, so you have a url whatever.com/something.php?page=1 I know you can do this, but what code do you use to do it? It confuses me, because I don't understand 1: how do you use like a set, you know 1, 2, 3, etc. 2: if you must use the if() how would you collect that data? $_POST ? Google has been failing me alot...

Thanks again guys,
Tim

Twey
12-29-2007, 12:50 AM
In that case, $_GET['page'] is '1'.

TimFA
12-29-2007, 03:36 AM
Thanks Twey. I'm learning PHP alot faster than JavaScript, its much easier. xD.