Good Morning,
I am having a problem setting the logic up on a form submission.
There are 2 components to the form
-1st part checks user name and password against a security file when $submit is pressed.
$db = mysql....
mysql_select....
if ($submit)
validate password
$result = ...
$numrows - ...
if $numrows=="0"...
$error = "enter a valid" ....
than when there are no errors, I need to submit the form to another form so I am NOT using action=$php$self
This is where I am having a problem because
I need to display the error and the form when $submit is pressed again. I tried introducing a $error flag but still can't get it to work.
Can i please get some help.
Thanks,
Melissa