| Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | About BLU |
Jerry Feldman wrote:
>
> The script now works correctly.
> But, one more quesiton. When I have the debugging turned on, it reports
> that $_POST['VAR'] is not set.
> Notice: Undefined index: VAR in script.php on line 6
> I can fix this with:
> if (isset($_POST['VAR'] )
> $VAR = $_POST['VAR'];
> Is there a better way of doing this to avoid the messages.
Are you certain you're fixing it with
if (isset($_POST['VAR'] ))
$VAR = $_POST['VAR'];
Should it be
if (isset($_POST['VAR'] ))
$VAR = $_POST['VAR'];
else
$VAR - {some default}
Otherwise VAR is left hanging if $_POST['VAR'] is not set.
/m
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.