bol_sign Posted May 24, 2007 Share Posted May 24, 2007 Hi I'm a beginner with php.. I've been trying this tutorial without any success. http://www.webdesign.org/web/web-programming/php/php-layouts.6636.html On pageload it notifies that the variable has not been defined. Is there something missing in this tutorial or is it me not understanding? Any help will be much appreciated... Thanks in advance.. Quote Link to comment https://forums.phpfreaks.com/topic/52855-web-layout-with-include-tags/ Share on other sites More sharing options...
Lumio Posted May 24, 2007 Share Posted May 24, 2007 make this lines: <?php if(!$cow || $cow == ""){$cow = "news";} ?> to <?php if(!isset($_GET['cow'])) $cow = "news"; else $cow = $_GET['cow']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/52855-web-layout-with-include-tags/#findComment-260968 Share on other sites More sharing options...
bol_sign Posted May 25, 2007 Author Share Posted May 25, 2007 Dear Lumio Thank you very much for the solution.. It worked. phpfreaks is the best. Is there an easy to learn step by step online guide to learn php. Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/52855-web-layout-with-include-tags/#findComment-261428 Share on other sites More sharing options...
Lumio Posted May 25, 2007 Share Posted May 25, 2007 hm... maybe www.php.net Quote Link to comment https://forums.phpfreaks.com/topic/52855-web-layout-with-include-tags/#findComment-261462 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.