MySQL Forums
Forum List  »  PHP

Re: PHP Error
Posted by: Peter Brawley
Date: April 19, 2009 04:07PM

Marc,

Main problem: the logic is an infinite loop---it will paint the form forever.

Two details:
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$";
                                                                                  ^
                      missing two right parens plus a statement to execute on the condition

if (strlen($mesg)<10) $ errorMesg = true; 
                       ^
               lose this space

PB
http://www.artfulsoftware.com

Options: ReplyQuote


Subject
Written By
Posted
April 19, 2009 12:25PM
Re: PHP Error
April 19, 2009 04:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.