View Full Version : Php


sapphire_snow
02-13-2006, 04:47 PM
can someone help me with php?

like how do you make it so this happens:

http://www.somewhere.com/somefile.php?somethingelse

can someone help me with that?

Douglas
02-13-2006, 05:03 PM
You need to use the GET method in PHP:


<?php
// page.php
$thing=$_GET['thing'];
echo $thing;
?>


Now go to:

http://www.something.com/page.php?thing=Blah+Blah+Blah

And it will print Blah Blah Blah :D

sapphire_snow
02-13-2006, 05:09 PM
Where do you put th code?

Douglas
02-13-2006, 05:15 PM
That is confusing, do you have an example?

sapphire_snow
02-13-2006, 05:24 PM
ok, like in frames, you have one big splash page and the frame will hold different pages in it

i want to do that, but i want it to be .php and on a div layout

snikerz79
02-13-2006, 06:43 PM
Look in PHP, this is where ur question should go.

Douglas
02-13-2006, 06:51 PM
Well, PHP is a dynamic language so it won't help any with the layout, and frames can be used with HTML.... ? It doesn't matter where it is now snikerz79 ;)