URL Parameters aren't taken

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drcolossus
Forum Newbie
Posts: 5
Joined: Tue Mar 23, 2004 8:19 pm
Location: Japan

URL Parameters aren't taken

Post by drcolossus »

Hi,
I got a problem here with my PHP. I'm running Apache (2.0.48) on Windows with PHP 4.3.3 installed. I want to give URL parameters to the next page like ...

<a href='nextpage.html?" . $parameter . "'>click here</a>

On the next page it checks if the variable is available with ...

if (!isset($parameter))
{
echo "Error - No entry ID was found!";
}
else
{

... but it always gives me the error message that no entry was found though everything looks well and the $parameter variable was transfered.
I remember this worked earlier when I had former versions of Apache/PHP installed so maybe this is a server configuration thing. In that case could someone tell me which settings to make in the Apache/PHP configs to allow the URL Parameters?

Thanks alot in advance!
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

See this thread or one of the other 10,000 on the subject ;)
drcolossus
Forum Newbie
Posts: 5
Joined: Tue Mar 23, 2004 8:19 pm
Location: Japan

Post by drcolossus »

thanks alot for the fast help! turning register_globals on fixed it!
Post Reply