Jump to content


Photo

Problem with the URL variables...


  • Please log in to reply
4 replies to this topic

#1 walkero

walkero
  • New Members
  • Pip
  • Newbie
  • 5 posts
  • LocationAthens Greece

Posted 10 August 2003 - 02:42 AM

I have a problem with a pc Win Xp pro installation of apache and php...
I installed it as the manual says, it runs fine with no error
on error.log. I also installed the latest version of MySQL as
a service.
Everything work just fine. The phpMyAdmin 2.5.3-rc1 works great
with no problem...

In there I put a folder with a page that I made. I use the same
code on an other computer with an older version of apache and
works just fine. At the new computer with the latest version
there is a problem. It doesn\'t use the extra parameters on a URL.
What I mean is that a URL like
http://morpheus:82/g...ok.php?todo=add
does not return a value of the variable todo. So I can\'t use the
<?php
echo $todo;
?>
to get back that value. It returns nothing.

But the phpMyAdmin 2.5.3-rc1 works great without having the problem
that my page have.

Does anyone know what\'s wrong?

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 10 August 2003 - 03:11 AM

try echo $_GET[$todo]; ... this is affected by register_globals in your php.ini
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 walkero

walkero
  • New Members
  • Pip
  • Newbie
  • 5 posts
  • LocationAthens Greece

Posted 10 August 2003 - 08:30 PM

you mean that the variable \"todo\" is something that we shouldn\'t use...????
I fixed it by changing the register_globals....

Also there is one more problem. The server doesn\'t send the cookies...do you have any clue about that?

thanks for your help

#4 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 10 August 2003 - 11:33 PM

http://www.php.net/register_globals

not sure about the cookies... browser settings ok?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#5 someone

someone
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 16 September 2003 - 07:07 AM

Greetings,
One place to look in regards to the cookie handling,
is in your php.ini file. There is a section specifically
regarding wheather or not, and how PHP will handle
cookies. This does not mean that your script may
not be the reason. It is simply one reason you may be
having trouble.

Best wishes,
Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users