Re: Variable won't be passed from HTTP address bar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Perhaps , $action  is not equal to "test".  Try initializing the $action
variable - instead of leaving it uninitialized.
<?php
$action = "test";
if($action=="test")


    echo "Test";
    }
?>


-----Original Message-----
From: Michel Bakkenes - bakkenes.net <michel@bakkenes.net>
To: php-db@lists.php.net <php-db@lists.php.net>
Date: Friday, October 18, 2002 6:26 AM
Subject:  Variable won't be passed from HTTP address bar


>Ok.. I'm not a newbie I thought.. I do have experience with PHP, but I
>never suffered from this error.
>
>I used on my own redhat 8.0 server the following test-script:
>
>if($action=="test"){ echo "Test";}
>
>I tried it to run with: 127.0.0.1/index.php?action=test
>
>It doesn't print anything. (which means I even can't print hello world
>:P)
>
>Oh, other variable constructions like $bla = "blah" . echo $bla etc. do
>work..
>
>With regards,
>
>Michel Bakkenes
>J2ee developer
>
>Infolook BV
>Zevenbergen, The Netherlands
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux