Just when I thought I was out of the woods on this application, I decided to block someone that simply clicks the Submit button without entering any data.
I looked up the use for "if (empty($field) == TRUE" and i was pretty certain I had it right,. I still had a few punctuation errors in there, so i corrected them and ran again. Now I'm stumped. The IF statement i what's failing. Here is the before and after code too:
$WebURL = $_POST['WebURL'];
if (empty($CoName) == TRUE || empty($Address1) == TRUE || empty($City) == TRUE || empty($State) == TRUE || empty($Phone) == TRUE || empty($Email) == TRUE ||empty($SpanCat) == TRUE || empty($EngCat) == TRUE || empty($AdSize) == TRUE || empty($BusDesc) == TRUE | empty($WelcomeMsg) == TRUE || empty($WebURL) == TRUE)
(echo "<br>You left out some required dields. <STRONG>Record NOT added</STRONG>. Enter this record again, please";
<P align="center"><A HREF="http://www.kotw.net"><STRONG>Go Back</STRONG></A></P>
)
// connect to the database
$dbc = mysql_connect('localhost','kotw_wdps1','D0Qy6DUuOnhZ5m9R') or die('Not connected : ' . mysql_error());
Can anyone tell me what's wrong here?