LiveWire Peer Support Network

Printable Version of Topic "Tech People! PHP HELP"

- LiveWire Teen Forums & College Forums (http://www.golivewire.com)
-- (http://www.golivewire.com/forums/support-technical.html)
--- Programming & Application Development (http://www.golivewire.com/forums/forum-211-s-0.html)
---- Tech People! PHP HELP (http://www.golivewire.com/forums/peer-tenyby-support-a.html)


-- Posted by pcxjockey7 at 5:17 am on Aug. 22, 2007

Okay, So I am coding a new website, and I have been looking around for some ideas, and I saw something on someone's site, where when you click a link, the page changes, but the address in the address bar is:

http://sdlfjklsjdflsfj.com/index.php?x=visitors/content

what is that ?x=dfjjsdf and where do you get it?


-- Posted by allsmiles at 5:31 am on Aug. 22, 2007

That is a variable in the GET form. The variable (x) is referenced as $_GET['x']


-- Posted by pcxjockey7 at 5:32 am on Aug. 22, 2007

Quote: from allsmiles at 8:31 am on Aug. 22, 2007


That is a variable in the GET form. The variable (x) is referenced as $_GET['x']


How do I use it?


-- Posted by PiXiE at 1:47 pm on Aug. 22, 2007

After getting the variable, you can use it in an if statement or in a query to display the content you want.


-- Posted by swya at 7:27 pm on Aug. 22, 2007

For example:

http://somesite.com/?x=test

Code:
echo('$_GET[x]');

This function would echo "test"


-- Posted by pcxjockey7 at 1:07 pm on Aug. 25, 2007

Quote: from swya at 10:27 pm on Aug. 22, 2007


For example:

http://somesite.com/?x=test

Code:
echo('$_GET[x]');

This function would echo "test"


how do I use the function?

About Us?


-- Posted by pleaseremove at 3:03 pm on Aug. 25, 2007

Code:


www.golivewire.com