LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 414 users online 223684 members 509 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Jacksonn
Music: any type of music is ok with me except ...
Mood: Sleepy
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
5 online / 17 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Adding Reply

Quoting Post
Archived Topic: It will not be bumped to the top of the forum.
Topic Tech People! PHP HELP
Membername   Not a member? Sign Up Free (takes 20 seconds)
Password   Forgotten your password?
Post

Font:   Size:   Color:

FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic by email
Notify me of new replies to this topic by private message
Original Post
pcxjockey7 Posted 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?

Replies
pleaseremove Posted at 3:03 pm on Aug. 25, 2007
Code:
<a href="<?php echo $_GET['x']; ?>"><?php echo $_GET['y']; ?></a>
pcxjockey7 Posted 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?

<a href="echo('$_GET[x]')">About Us</a>?

swya Posted at 7:27 pm on Aug. 22, 2007
For example:

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

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

This function would echo "test"

PiXiE Posted 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.
pcxjockey7 Posted 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?

allsmiles Posted at 5:31 am on Aug. 22, 2007
That is a variable in the GET form. The variable (x) is referenced as $_GET['x']
All 6 previous replies displayed.