View Full Version : $_GET question
Lionel
12-28-2005, 08:58 PM
Is there a way to avoid long url display in browser's address bar while using $_GET whether in a form method with hidden input or in a direct url? I am ending up with:
?do=predict&gameid=00000113&t1=Netherlands%20Antilles&t2=US%20Virgin%20Islands&d=2006-03-29&t=20:00&l=Willemstad&g=Group%20C&tid1=0122&tid2=0123&cid=0010&s=000000000016&u=4
it does the job, but is very inelegant.
Andreas
12-28-2005, 09:10 PM
No way with GET. Why not use POST?
Guest190829
12-28-2005, 09:16 PM
No way with GET. Why not use POST?
Yeah using Post will solve your problem, since it doesn't hold the information in the urls.
Lionel
12-28-2005, 09:28 PM
I have a page named interschedule.php that displays an entire schedule.
I tried post, for some reason it displaying the same original page and the requested page (which is part of interschedule.php) at the bottom
here is the idea (http://www.haitiwebs.com/haitianforums/interschedule.php), when you click on predict it takes me to the right page. With post, I get the original page on top and also that requested page.
I got it. I had to change that line for the main page from if (empty($_GET['do']))
to
if (empty($_POST['do']))
edit again. I made it if (empty($_REQUEST['do']))
Guest190829
12-29-2005, 01:49 AM
And also if your using this with vbulletin please take note of this:
http://www.vbulletin.com/docs/html/codestandards_gpc
Lionel
12-29-2005, 02:00 AM
Thanks Danny, that's valuable information in that page
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.