Re: problems with self referential sticky forms

From: Date: Tue, 19 Jul 2005 22:24:26 +0000
Subject: Re: problems with self referential sticky forms
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-219006@lists.php.net to get a copy of this message
Linda H wrote:
Where is fahrenheit? change the input name...
fahreheit is here: <? $fahr = $_GET['fahrenheit']; if (is_null($fahr)){ echo 'fahr is null';} $> The error was on the line: $fahr = $_GET['fahrenheit']; Linda Have you checked that the name is spelt correctly in your HTML form?
I (and this is jus a preference) do: $var = (isset ($_GET['var'])) ? $_GET['var'] : null; HTH, Mikey

« previous php.general (#219006) next »