I want to exit a form if an email address is already in use. I can detect that OK and I could use php main frame->redirect. Is there a cleaner way? A sort of programmatic show stopper? exit or die I know but a bit messy.
Nick
ps I suspect that I should use AJAX before I get that far. One day I must learn how to do that. 🙂
Hi Nick,
There is a Show Stopper action in CFv4 but that probably isn't what you want.
What do you want to happen when a used Email is found?
Bob
Hi Bob
I use the show stopper but I need to call it from within some PHP code rather than from the form itself. I need to exit from the form and go back to the previous from which it was called.I use a system message to tell the user that the email is NBG.
I just might be making more of a problem than it really is here.
Nick
Hi Nick,
Mainframe redirect with a message? or,
Use Serverside validation with a redirect on Fail?
I'm not really understanding what the problem is :-(
Bob
I think that is answer enough Bob - I think I was off with the fairies when I began worrying about that.
I haven't looked at that Serverside validation. I must!
Thanks
Nick