[access-uk] Re: PHP Issue

  • From: Léonie Watson <tink@xxxxxxxxxx>
  • To: <access-uk@xxxxxxxxxxxxx>
  • Date: Sat, 28 Feb 2009 19:15:22 -0000

        Not sure if you meant to send this query to this list? In any case,
have you tried putting the die function after the code that outputs the rest
of the page?
 

Léonie. 

-----Original Message-----
From: access-uk@xxxxxxxxxxxxx [mailto:access-uk@xxxxxxxxxxxxx] On Behalf Of
James Scholes
Sent: 28 February 2009 19:06
To: blindtech@xxxxxxxxxxxxxxx; bct@xxxxxxxxxxxxxxxxxxxxxx;
access-uk@xxxxxxxxxxxxx
Subject: [access-uk] PHP Issue

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


** 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: