PHP: Notice: Undefined variable: c

Started by
2 comments, last by stefu 21 years, 1 month ago
Hello, I'm trying to program some PHP site navigation and got this notice on my page: Notice: Undefined variable: c in index.php on line 41 The code is: if ($c != "") { ... } I use parameter c that is in the address line like this: index.php?c=news&p=0 It works perfectly on my computer with Apache/1.3.27 running. But it doesn't work in my unversity account (Apache/1.3.26). Is this propably disabled option or should I somehow tell that c is a variable from address line? Thanks. [edited by - stefu on March 3, 2003 5:25:39 AM]
Advertisement
you know, php comes with documentation.
quote:Original post by niyaw
you know, php comes with documentation.


Sorry, maybe moderators should close this thread now!!!
But thanks for your help, I really didn''t know that.
Thanks for Google again:

$c = $_GET[''c''];$p = $_GET[''p'']; 

This topic is closed to new replies.

Advertisement