View Full Version : PHP Question


yamachi
03-25-2004, 11:31 PM
Hi. Not exactly sure how to ask for what I need o.O But here's and example: You click on a link that adds "?id=whatever" to the address and changes one part of the page... For example if you go to http://www.maidensoul.net/gds/index.php?id=tutorials.php only the main content part changes... Yeah. I hope you can understand what I'm saying... Sorry I'm not making much sense >< Help is much appreciated...

PunkGo
03-26-2004, 12:52 PM
kk...ur gonna wana do something like this... say u want to get like an a for action, like http://www.blah.com/profile.php?a=zing

$a = $_GET['a'];
if($a == 'zing'){
echo 'zing'; // this will be ur main content for the zing action.
}

then just change according to the actions.

yamachi
03-26-2004, 08:16 PM
Thanks ^^ That helped quite a bit. It took me a while to figure out how to use inclusion in that code (I'm so stupid T.T) but I finally got it ^.^! Thanks so much!