vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   $_GET question (https://vborg.vbsupport.ru/showthread.php?t=103927)

Lionel 12-28-2005 08:58 PM

$_GET question
 
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:

PHP Code:

?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=

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

Quote:

Originally Posted by Andreas
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, 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
PHP Code:

if (empty($_GET['do'])) 

to

PHP Code:

 if (empty($_POST['do'])) 

edit again. I made it
PHP Code:

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


All times are GMT. The time now is 10:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02009 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete