php-install | 2003092
Date: 09/30/03
- Next message: looknow12: "[PHP-INSTALL] Server: Failed to Load DLL, Client HTTP 500 Error"
- Previous message: Karl Widde: "[PHP-INSTALL] How are absolute includes supposed to work?"
- In reply to: Adam Dear: "[PHP-INSTALL] Passing information via a url"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Adam Dear wrote:
> I have just started using php. I am trying to pass a parameter from one
> page to another via a url ie:
> www.mysite.com/myphp.php?param=string
>
> I am then checking the variable in the requested program, however, it isn't
> working. I try to evaluate its value in a if statement ie:
> if($param == "string")
> {
> do something;
> }
Hmm, there was a similar question yesterday. Obviously, you have
register_globals=off in your php.ini file. You can verify it either
check the file php.ini directly or by www.mysite.com/phpinfo.php.
Actally setting register_globals off is good for security concern. Now
you can try to get the parameter by $_GET['param'].
Best
Bao
> Is there something I need to configure in php to be able to accept a
> variable passed via a url?
>
> By the way, I'm new to php, so please be specific with answers.
>
> Thanks
> Adam
>
- Next message: looknow12: "[PHP-INSTALL] Server: Failed to Load DLL, Client HTTP 500 Error"
- Previous message: Karl Widde: "[PHP-INSTALL] How are absolute includes supposed to work?"
- In reply to: Adam Dear: "[PHP-INSTALL] Passing information via a url"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

