Page 1 of 1

i need help

Posted: Fri Mar 12, 2004 5:14 pm
by pure-krypton
i know nothing about php :( and would like some help. this is what i want like to know how to do:

cars.php?display=nissan
cars.php?display=toyota
cars.php?display=honda

each link to display a different page. could someone please help me?

Posted: Fri Mar 12, 2004 5:17 pm
by andre_c
Try this:

Code: Select all

<?
include $_GET['display'] . '.php';
?>
if the pages are named nissan.php, toyota.php, and honda.php

Posted: Fri Mar 12, 2004 5:17 pm
by Illusionist
yeah, first thing: read some tutorials. learn a little. And your question is cryptic, but i think you may be wanting to do something like:

Code: Select all

echo $_GET['display'];
add that to cars.php and then when you go to something like cars.php?display=nissan, it will echo out nissan