Posted by Steve on 04/24/07 17:59
| And of course I'd want at a minimum to be able to note the error &
| suppress my "thank you" message afterwards. That bit of code is simply:
|
| query($query);
| print "<p>Thank you! Your registration has been completed!</p>\n";
|
| more like this:
|
| query($query);
| if (!$error){
| print "<p>Thank you! Your registration has been completed!</p>\n";
| }
have you tried something like:
if (@query($query) !== false)
{
//thanks
} else {
// handle the error
}
Navigation:
[Reply to this message]
|