Log In · Register

 
Query Strings, how do you do it?
Mikeplyts
post Feb 22 2009, 10:27 AM
Post #1


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



I was wondering how you could make those url's that have a question mark and a few equal signs and such at the end of a url. I belive they are called query strings, right? How can I do it to like make a page go to a next page such as this where it has "?page=2". I know it has to something with PHP and I tried googling tutorials but I just don't understand. Can someone please explain how to do this like if I wanted to make the page go the second page using a simple HTML "a" tag? Thanks. _smile.gif
 

Posts in this topic
Mikeplyts   Query Strings   Feb 22 2009, 10:27 AM
mipadi   Like this: CODE<a href="/path/to/page.php...   Feb 22 2009, 10:46 AM
Mikeplyts   Oh ok. Also, would I have to make a new page that...   Feb 22 2009, 10:50 AM
mipadi   No, the script that gets run would be whatever...   Feb 22 2009, 10:54 AM
Fawaz   I know the code above is too advance for someone w...   Feb 22 2009, 12:15 PM
Mikeplyts   ^Ok, I tried it but it still wasn't working fo...   Feb 22 2009, 06:09 PM
JosephCohen123   Or! If it's in the case of a form or somet...   Feb 22 2009, 06:18 PM
Mikeplyts   Ok, I figured out how to make it not be blank but ...   Feb 22 2009, 06:44 PM
mipadi   QUOTE(Mikeplyts @ Feb 22 2009, 06:44 PM) ...   Feb 22 2009, 06:49 PM
Mikeplyts   Could I also put PHP includes in there?   Feb 22 2009, 06:57 PM
mipadi   QUOTE(Mikeplyts @ Feb 22 2009, 06:57 PM) ...   Feb 22 2009, 07:02 PM
JosephCohen123   Yes. But dont put <?php include() ?> just pu...   Feb 22 2009, 07:02 PM
Mikeplyts   Ok. Thanks. Another question, how I could make th...   Feb 22 2009, 08:15 PM
Fawaz   Use forward slash \ before any Quotes like ...   Feb 22 2009, 08:28 PM
mipadi   You have to escape them with a backslash \, l...   Feb 22 2009, 08:29 PM
Fawaz   Here is an easy way to do use HTML inside in those...   Feb 22 2009, 08:34 PM
Mikeplyts   Thanks. One more question, how could you add ano...   Mar 13 2009, 04:19 PM
mipadi   QUOTE(Mikeplyts @ Mar 13 2009, 05:19 PM) ...   Mar 13 2009, 04:54 PM
Mikeplyts   ^Yeah, I know that but how do I like 'define...   Mar 13 2009, 05:11 PM
mipadi   QUOTE(Mikeplyts @ Mar 13 2009, 06:11 PM) ...   Mar 13 2009, 05:57 PM
Mikeplyts   ^And how would I add that to Fawaz's code? Th...   Mar 13 2009, 06:04 PM
mipadi   QUOTE(Mikeplyts @ Mar 13 2009, 07:04 PM) ...   Mar 13 2009, 06:10 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: