Re: [Jason] Testing for existing user account
Hi Jason,
In order to hide the form and instructions from the page after the pastInformation form is submitted, I’m using:
<?php if (@$errorsAndAlerts): ?>
<div ><br/>
<?php echo $errorsAndAlerts; ?><br/>
</div>
<?php else: ?>
The Form Code and Instructions...
<?php endif ?>
The problem I’ve got is that if a blank form is submitted, the form is also hidden and only the "address does not exist" alert message is displayed.
This might be the wrong approach, but to handle the submission of a blank form without hiding the form itself, I’ve tried setting up a second "errors and alerts" group.
Here’s what I tried so far, but I get a Fatal error: Call to undefined function alert2() and I'm not sure how to fix the problem.
// submit form
$errorsAndAlerts2 = alert2();
if (@$_REQUEST['submit'] && !@$_REQUEST['pastInformation']) { $errorsAndAlerts2 .= "Please enter an email address<br/><br/>\n"; }
(Hope that all makes sense)
Any insights would be appreciated.
Thanks,
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php