[access-uk] PHP Issue
- From: James Scholes <james@xxxxxxxxxxxxx>
- To: blindtech@xxxxxxxxxxxxxxx, bct@xxxxxxxxxxxxxxxxxxxxxx, <access-uk@xxxxxxxxxxxxx>
- Date: Sat, 28 Feb 2009 19:05:46 +0000
Hi all,
I've just written a registration form for a new website I am creating.
Basically, someone types there details into a form, the input of the vareous
fields is validated in different ways, then if the input passes all the tests,
it is added to a SQL database. This is all working brilliently, however I have
used the die() function for the action to take if one of the tests fails.
Normally this wouldn't be a problem, but this is a very large website, and I
need a number of files, like a footer and copyright notice, to be included
after the form, regardless of whether the form has passed validation or not.
But, as I've used the die() function, if the form does not pass validation, the
page ends at the die() notice. So, no footer, no nothing. The only option I can
see is to get rid of the validation checks, which I really don't want to, in
fact, really can't, do. Any ideas? I know this can be done, as many sites
powered by PHP show all their content, even if the form does not pass
validation. Thanks.
James Scholes
--
Contact Details
--
E-mail: james@xxxxxxxxxxxxxxxx
MSN/Windows Live Messenger: jamesscholes@xxxxxxx
AIM: JamesScholes000
Skype: james.scholes
--
Social Networks
--
Twitter: http://www.twitter.com/jamesscholes
Find me on Facebook! Username: jamesscholes
Link to Facebook profile:
http://www.facebook.com/profile.php?id=1375965156&hiq=jamesscholes
Last.FM Profile: http://www.last.fm/user/jamesscholes000
--
Message sent at 06:47:16 PM GMT on Saturday, February 28, 2009
** To leave the list, click on the immediately-following link:-
** [mailto:access-uk-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** access-uk-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:access-uk-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** access-uk-request@xxxxxxxxxxxxx with the Subject:- faq
Other related posts: