Form validation error / glitch? oO
Moderator: General Moderators
Form validation error / glitch? oO
EDIT... =D
Last edited by ShadowIce on Mon Jan 18, 2010 4:55 pm, edited 1 time in total.
Re: Form validation error / glitch? oO
When you omit curly braces ({}) from a conditional statement, only the first statement after the condition is controlled.
Edit: This post was recovered from search engine cache.
Code: Select all
if (false)
echo 'never displayed; controlled by the condition';
echo 'deceptively indented; always displayed; not controlled by the condition';
Last edited by McInfo on Thu Jun 17, 2010 4:27 pm, edited 1 time in total.
Re: Form validation error / glitch? oO
didnt work.....
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Form validation error / glitch? oO
Um.. did you try adding the curly braces around the conditional code?
You generally want to post exactly what you tried.. saying it doesn't work is of absolutely no help.
You generally want to post exactly what you tried.. saying it doesn't work is of absolutely no help.
Re: Form validation error / glitch? oO
EDIT... =D
Last edited by ShadowIce on Mon Jan 18, 2010 4:56 pm, edited 1 time in total.
Re: Form validation error / glitch? oO
The condition I was referring to in my first comment is this, on line 35 of the script you originally posted.
Edit: This post was recovered from search engine cache.
Code: Select all
if (count($errors) > 0)
Last edited by McInfo on Thu Jun 17, 2010 4:27 pm, edited 1 time in total.
Re: Form validation error / glitch? oO
EDIT... =D
Re: Form validation error / glitch? oO
Case: Closed! =D I fixed the problem! =D
Re: Form validation error / glitch? oO
Deleting the content of your posts does not benefit the community.
Edit: This post was recovered from search engine cache.
Edit: This post was recovered from search engine cache.