November 7, 201015 yr Hi, I have a page on my site with a list of vehicles. The list doesn't change and never will. The page is called vehicles.php and every name of a vehicle should link to something like vehicles.php?car=1. What is this called and how do I do it? Does it have a name? I remember doing this with pages (?page=x) but it wasn't my script and I just modified it. So here's an example to make it more clear: <a href="vehicles.php?car=1">Mercedes-Benz S500</a> <a href="vehicles.php?car=2">BMW 325i</a> <a href="vehicles.php?car=3">Audi A5</a> etc.. After I clicked the link, it should be a new page with more information on that vehicle. Please link me to some tutorials if possible or help me out if you can Cheers - Revs
November 7, 201015 yr Hi, I have a page on my site with a list of vehicles. The list doesn't change and never will. The page is called vehicles.php and every name of a vehicle should link to something like vehicles.php?car=1. What is this called and how do I do it? Does it have a name? I remember doing this with pages (?page=x) but it wasn't my script and I just modified it. So here's an example to make it more clear: <a href="vehicles.php?car=1">Mercedes-Benz S500</a> <a href="vehicles.php?car=2">BMW 325i</a> <a href="vehicles.php?car=3">Audi A5</a> etc.. After I clicked the link, it should be a new page with more information on that vehicle. Please link me to some tutorials if possible or help me out if you can Cheers - Revs well ur linking it correctly now on the vehicles page u would just do a check for each car like if($_GET['car'] == 3){ //DO CODE FOR CAR 3 } else if($_GET['car'] == 1){ //DO CODE FOR CAR 1 ECT.. }
November 7, 201015 yr well ur linking it correctly now on the vehicles page u would just do a check for each car like if($_GET['car'] == 3){ //DO CODE FOR CAR 3 } else if($_GET['car'] == 1){ //DO CODE FOR CAR 1 ECT.. } ...and it called a query string
Create an account or sign in to comment