Page 1 of 1

Keeping ?id=blah out of address bar?

Posted: Sun Dec 22, 2002 6:15 am
by Elmseeker
Hi,

I think the subject pretty much says what I want to do. I don't care that people will still be able to SEE the full url if they want to, I just don't want it to show by default for appearances sake, those URLs with million character query strings LOOK nasty...this is mostly just because I don't like looking at them when I'm on a site so would like to eliminate it from mine...Thank you.

Posted: Sun Dec 22, 2002 7:32 am
by f1nutter
If the query string (everything after the ?) is passed from a form, then use the POST method to send data without appending it to the address.

Posted: Sun Dec 22, 2002 7:34 am
by f1nutter
And use $_POST (in PHP) to get it back out again.

Posted: Sun Dec 22, 2002 7:41 am
by evilcoder
I think i understand what your saying. However, most sites with queries are template driven, and that site=page is referring to a file that is needed to be included, and instead of creating 30 individual pages only 1 is needed then all the information is loaded in according to queries.

Hmmm...

Posted: Sun Dec 22, 2002 7:51 am
by Elmseeker
Well, I am using it in a template but not in a form. I do want and need it to be called by the script and included in the url I am just wondering if there is a way visually hide it from the user...

Thanks again. :)

Posted: Sun Dec 22, 2002 7:56 am
by f1nutter
You could place your site within a frame and then the address bar will appear not to change.

Code: Select all

<frameset rows="*, 100%">
<frame src="blank.htm">
<frame src="content.htm">
</frameset>
(I think thats correct!)

:)

Posted: Sun Dec 22, 2002 8:29 am
by Elmseeker
That worked Perfectly, thank you very much ;)

but

Posted: Sun Dec 22, 2002 9:52 am
by AVATAr
this do not stop you from copying an url from a link and paste it in another navigator.

Posted: Sun Dec 22, 2002 11:14 pm
by mydimension
have you thought about the Apache RewriteModule? i use it and absolutely love it. lemme know if you would like some help on it.

Posted: Mon Dec 23, 2002 3:53 am
by f1nutter
Had a look at your site, looking good.

For a more complete frames explaination have a look at http://www.w3.org/TR/html4/present/frames.html#h-16.1 which will make your site more compatable with oher browesers.

Thanks again

Posted: Mon Dec 23, 2002 4:11 am
by Elmseeker
Had a look at your site, looking good.

For a more complete frames explaination have a look at http://www.w3.org/TR/html4/present/frames.html#h-16.1 which will make your site more compatable with oher browesers.
Thanks, we hope to make it really something whe it's done. I know about frames jst had never occured to me to use them in that way before, pretty clever.
this do not stop you from copying an url from a link and paste it in another navigator.
That's ok though, I don't care if people want to do that it's fine, I just don't want to have to look at it all the time while developing the site lol, will mos tlikely put it back to normal once the site goes live at any rate so i don't have to worry about browser issues and what have you. Thank you for the input though.