Re: newbie issues with control structures & HTML form

From: Date: Tue, 27 Jan 2004 16:26:04 +0000
Subject: Re: newbie issues with control structures & HTML form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175941@lists.php.net to get a copy of this message
Jonno Agnew wrote:
I wondered if I can ask you two follow-up questions?
On-list, yes. Off-list, yes, at consultancy rates.
(1) On Useractive's PHP environment, if ($guessnumb) { seems to work fine, but on my PHP 4.3.4 environment it doesn't. Is there some setting I need to tweak, and if so could you walk me through a way of making the change? I know register_globals is turned OFF in my set-up but don't know how to turn it on or if that's wise.
http://php.net/register_globals (best to code for register_globals off).
(2) Regarding your code below. I recognize these two statements as some sort of arrays. How do I actually write the equivalent code to evaluate if the variable has been passed/set, then do either this or that?
if (isset($_GET['guessnumb'])) {
    ...
} -- Stuart

« previous php.general (#175941) next »