Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

php ID navigation

  • Please log in to reply




  • Member
  • PipPip
  • 15 posts
hi all,

i just finished a site for a friend, and used the php id navigation, it works on local but when i uploaded the site i noticed it wasnt working anymore.....

Code is as follow:
switch($id) {
break; case "empresa": 
break; case "sunscope":
break; case "membresia":
break; case "contacto":

When you click in any link.. (links are: ?id=sunscope ; ?id=membresia ; ?id=contacto...) the page reloads but dont include the page you're requesting (sunscope;membresia or contact)...

Any ideas? i need help badly!

thanks in advance..

LINKS: you can check out by yourself the problem @ http://integral-logi...rvice.com/main/

both my PC and remote host uses last version of php.

Edited by netoster, 03 April 2007 - 02:15 PM.

  • 0





  • Topic Starter
  • Member
  • PipPip
  • 15 posts
Solution found:

changing $id to $_REQUEST['id'] ....or $_GET['id']

hope this help someone!
  • 0



    Retired Staff

  • Retired Staff
  • 1,869 posts
An explanation of why that does not work.

If you have register_globals on the variable such as $_GET['id'] or $_POST['id'] can be accessed by useing $id. But that is very dangerous since it allows some one to set the value of any variable in your script. So your host has very wisely disabled it. So you have to use $_GET or $_POST.

Hope that explains something.
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP