Re: [PHP] URL hiding
Have you index.php page as a frameset, and load all pages into the frameset. No matter where the user is on your site, they'll just see http://www.whatever.com Kris wrote: Hi When I pass variables to a new page in the address bare of the browser it looks like www.whatever.com/index.php?uName=Kris&passWd=1234 How can I hide this so it's just www.whatever.com/index.php or even better just www.whatever.com thanks Kris -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL hiding
There may be an easier way, but I usually use sessions when I want to pass variables around that I want to remain hidden, but want to use links. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Kris" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 10:39 AM Subject: Re: [PHP] URL hiding > I already use POST as the form method. > I know > www.whatever.com/index.php?uName=Kris can be the same as > www.whatever.com?uName=Kris > > I just want to get rid of the ?uName=Kris part on the end > I still need the variables to be passed I just don't want the user to be > able to see them. > > Thanks for your help > > Kris > > - Original Message - > From: "Marco Tabini" <[EMAIL PROTECTED]> > To: "Kris" <[EMAIL PROTECTED]> > Cc: "PHP-General" <[EMAIL PROTECTED]> > Sent: Wednesday, November 27, 2002 9:12 AM > Subject: Re: [PHP] URL hiding > > > > If index.php is the index page of your website, then you do not need to > > specify it at all. > > > > i.e. www.whatever.com/index.php?uName=Kris > > > > is functionally equivalent to www.whatever.com?uName=Kris > > > > A way to get rid of the variables passed in the query string is to use > > POST instead of GET as the method of your HTML form. > > > > > > Hope this helps, > > > > > > Marco > > -- > > > > php|architect - The magazine for PHP Professionals > > The first monthly worldwide magazine dedicated to PHP programmers > > > > Come visit us at http://www.phparch.com! > > > > > -- -- > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL hiding
Then the only solution I can think of is to make them part of the POST variables somehow--ie. through a hidden field, which you can even fill dynamically with Javascript. AFAIK that's the only way. Cheers, Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! --- Begin Message --- I already use POST as the form method. I know www.whatever.com/index.php?uName=Kris can be the same as www.whatever.com?uName=Kris I just want to get rid of the ?uName=Kris part on the end I still need the variables to be passed I just don't want the user to be able to see them. Thanks for your help Kris - Original Message - From: "Marco Tabini" <[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 9:12 AM Subject: Re: [PHP] URL hiding > If index.php is the index page of your website, then you do not need to > specify it at all. > > i.e. www.whatever.com/index.php?uName=Kris > > is functionally equivalent to www.whatever.com?uName=Kris > > A way to get rid of the variables passed in the query string is to use > POST instead of GET as the method of your HTML form. > > > Hope this helps, > > > Marco > -- > > php|architect - The magazine for PHP Professionals > The first monthly worldwide magazine dedicated to PHP programmers > > Come visit us at http://www.phparch.com! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- End Message --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL hiding
I already use POST as the form method. I know www.whatever.com/index.php?uName=Kris can be the same as www.whatever.com?uName=Kris I just want to get rid of the ?uName=Kris part on the end I still need the variables to be passed I just don't want the user to be able to see them. Thanks for your help Kris - Original Message - From: "Marco Tabini" <[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 9:12 AM Subject: Re: [PHP] URL hiding > If index.php is the index page of your website, then you do not need to > specify it at all. > > i.e. www.whatever.com/index.php?uName=Kris > > is functionally equivalent to www.whatever.com?uName=Kris > > A way to get rid of the variables passed in the query string is to use > POST instead of GET as the method of your HTML form. > > > Hope this helps, > > > Marco > -- > > php|architect - The magazine for PHP Professionals > The first monthly worldwide magazine dedicated to PHP programmers > > Come visit us at http://www.phparch.com! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL hiding
If index.php is the index page of your website, then you do not need to specify it at all. i.e. www.whatever.com/index.php?uName=Kris is functionally equivalent to www.whatever.com?uName=Kris A way to get rid of the variables passed in the query string is to use POST instead of GET as the method of your HTML form. Hope this helps, Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! --- Begin Message --- Hi When I pass variables to a new page in the address bare of the browser it looks like www.whatever.com/index.php?uName=Kris&passWd=1234 How can I hide this so it's just www.whatever.com/index.php or even better just www.whatever.com thanks Kris --- End Message --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] URL hiding
Hi When I pass variables to a new page in the address bare of the browser it looks like www.whatever.com/index.php?uName=Kris&passWd=1234 How can I hide this so it's just www.whatever.com/index.php or even better just www.whatever.com thanks Kris