PHP script code logic debug

About the client

Posted on Jan 13, 2011 / Est. budget $ 100 / Project closed

Hi I have a php script which enters a users email into an SQL database and sends out an email to the user and to the owner. The script validates the email address and there is also a capture.
The email part works and sends only when the capture is entered correctly but the email is entered into the database regardless.
Just need some help with the logic which is wrong somewhere.

Project bids (3)

Bids are visible only by project owner and Premium members.