You should be using '==' compare not '=' assignment
Plus you can use the isset function to determine whether the $page variable
has been set
e.g. if (!isset($Page)) $Page="homepage";
-Stewart
-Original Message-
From: Dan Eskildsen [mailto:[EMAIL PROTECTED]]
Sent: 14 May 2001 11:24
To:
";
WHILE ($i < $num) {
$name = mysql_result($result,$i,name);
$email = mysql_result($result,$i,email);
$id = mysql_result($result,$i,id);
PRINT "";
< modified
PRINT "";
< modified
$i++;
}
PRINT "";
}
?>
To create the q
The form header should specify which page you want to go to when you submit
the form.
If you require to go to diffent pages depending on which button is pressed
you can set a hidden variable to specify the required page/action. Then
include the correct action code using a switch statement.