Query Strings, how do you do it? |
Query Strings, how do you do it? |
![]()
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.
![]() |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 ![]() |
Or! If it's in the case of a form or something, it would be like this page:
http://wefuze.com/php/form.php Because i used get on the form it shows the php results in the address bar which allows someone to bookmark it. Edit: I o see you wanna know about doctypes too. yes its good to add one. At the top of the page add: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> After much researcher I have learnt that on any page this is prob the best to use. And replace <html> at the top with: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
|
![]() ![]() |