Jump to content


Photo

How to hide variables


  • Please log in to reply
3 replies to this topic

#1 tzzoug

tzzoug
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 26 September 2006 - 10:26 PM

Hi guys, im new to the php world.
I just created a site www.blabla.com, however, whenever a visitor goes to the next page, it shows something like this
http://www.blabla.co...n&category=java
i would like it that those variables not show, and blabla.com stay only.
Any help would be appreciated... if someone can lead me in the right direction :)
Tzzoug

#2 phporcaffeine

phporcaffeine
  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 27 September 2006 - 12:24 AM

Well, this isn't a simple "hide" ...

when you see " ?topic=concern&category=java " those are keys => variables to the $_GET array.  The simplest way that you can alter this is to send the keys => variables through the $_POST array.

Again, this isn't something you can do with out knowing how php array stacks work and how PHP works with HTML forms.

Honestly, you need to start reading the PHP manual on this one.  You could post some code and we can fix it but you really wont learn anything.
Thanks,

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com

#3 High_-_Tek

High_-_Tek
  • Members
  • PipPipPip
  • Advanced Member
  • 72 posts

Posted 27 September 2006 - 01:04 AM

Look into the mod_rewrite if your server uses Apache

#4 tzzoug

tzzoug
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 September 2006 - 01:42 AM

Thanks for the quick help guys, ill look into that m8
I also heard from another guy that i can use a javascript in order to mask the address bar... just to let you guys know of a possibility maybe :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users