RE: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-24 Thread joakim . andersson
 Try instead:
 
 if( $_POST['action'] ==test ){ echo Test;}
 
 HTH
 Ignatius

This should really be

if( $_GET['action'] ==test ){ echo Test;}

since it's a get-request we're dealing with...

Regards
Joakim

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




[PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Michel Bakkenes - bakkenes.net
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



Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Chase Urich
Check your register_globals setting in your php.ini file. This used to
default to 'yes', but now defaults to 'no'.


On Fri, 2002-10-18 at 06:26, Michel Bakkenes - bakkenes.net wrote:
 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
-- 
Linux: Because rebooting is for adding hardware.
Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8 BE8



signature.asc
Description: This is a digitally signed message part


Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Pierre-Alain Joye
On Fri, 18 Oct 2002 13:26:20 +0200
Michel Bakkenes - bakkenes.net [EMAIL PROTECTED] wrote:

 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;}


Looks like you do not have register_globals ON :-), as far as I suppose
$action comes from get or post.

hth

pa

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




Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread dwalker
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, October 18, 2002 6:26 AM
Subject: [PHP-DB] 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


Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Ignatius Reilly
Try instead:

if( $_POST['action'] ==test ){ echo Test;}

HTH
Ignatius

- Original Message - 
From: Michel Bakkenes - bakkenes.net [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 18, 2002 1:26 PM
Subject: [PHP-DB] 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