[Gllug] mySQL PHP

will will at hellacool.co.uk
Tue Jul 10 16:36:04 UTC 2001


----- Original Message -----
From: Jackson, Harry <HJackson at colt-telecom.com>
To: <gllug at linux.co.uk>
Sent: Tuesday, July 10, 2001 5:22 PM
Subject: RE: [Gllug] mySQL PHP


> > -----Original Message-----
> > From: will [mailto:will at hellacool.co.uk]
>
> > You could simply put the last section in an if statement to
> > test whether the
> > submit button had been pressed.  This will only do the
> > database stuff if the
> > form has been submitted so the variables will have values:
>
> Tried that and it came up with the error undefined variable on line 59
which
> was the $submit so I am not sure what exactly happened there.

Wierd, it works fine for me after I cut out all the database stuff:

<?php
if ($submit)
{
 echo "boo";
}
?>

I don't know what happened there.

will.


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list