FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Bug with URL?

Feed 7 posts, 5 voices

Avatar
180 posts

I want to read $_GET varibles.

But when I try to load http://site.com/index.html?test=1&test2=2, get an error 404.

 
Avatar
316 posts

I also have this problem. I think the problem lies in how Frog reads and composes URL’s. Seeing as how our addresses usually look like http://site.com/?articles/2008/10/02/article-name.html, it generally looks like most of that would be a $_GET result.

The only solution I could find, was to use the POST for method instead. If the dev’s have a way of enabling us to use GET, that would be really nice.

 
Avatar
184 posts

I’m sure I read somewhere that was being looked into.

I’ve not had the time to look under Frog’s hood properly myself, but perhaps the page URL should apply to everything that doesn’t have a prefix of ‘var_’ for example. Therefor anything with ‘var_’ prepended to it could be presumed to be a passed parameter and not in fact a page or article id!?

 
Avatar
1493 posts

I’m sure I read somewhere that was being looked into.

BlueFrog might have been thinking of this thread, but GET also comes up at the end of this one.

Hope that helps for the moment…

 
Avatar
184 posts

BlueFrog might have been thinking of this thread

Yes, I recall reading that one. There was in fact another thread that discussed that $_GET was being looked into, but that latter link is new to me … gonna have a play with that hack.

 
Avatar
180 posts

I have problem with $_SERVER[‘QUERY_STRING’];

URL: http://test1.ru/test/?test=1
TRACE die($_SERVER[‘QUERY_STRING’]) IN main.php ON LINE 258 SAY: test/&test=1

Whats wrong?

URL_SUFFIX = ‘/’

 
Avatar
180 posts

Bug or not, but apache return

NOT test/?test=1
THIS test/&test=1

Becose in .htaccess

index.php?$1

I set in .htacess index.php?QS=$1

And in main.php

function main()
{
    // get the uri string from the query
    //$uri = $_SERVER['QUERY_STRING'];
    $uri = @$_GET['QS'];
 
Avatar
9 posts

Unfortunately this solution did not work on 0.9.5 for me. Maybe there are other solution?