Porkie Posted May 5, 2009 Share Posted May 5, 2009 hi i was just wondering how i would add this data to a database, but first check that there are no empty fields. And have a box either saying "error - Field" or "Thanks Sucess" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style1 {font-family: Arial, Helvetica, sans-serif} .style5 {font-family: Arial, Helvetica, sans-serif; font-size: 16px; font-style: italic; } .style6 {font-family: Arial, Helvetica, sans-serif; font-style: italic; } .style7 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; } --> </style> </head> <body> <table width="671" border="1"> <tr> <td colspan="5" class="style7">Create New Advert </td> </tr> <tr> <td colspan="2" class="style1"><span class="style5">Advert Name : </span></td> <td colspan="2"><span class="style1"> <label> <input name="textfield" type="text" size="30" /> </label> </span></td> <td width="119"><span class="style7">Ideas</span></td> </tr> <tr> <td colspan="2" class="style6">Email Address : </td> <td colspan="2"><span class="style1"> <label> <input name="textfield2" type="text" size="30" /> </label> </span></td> <td rowspan="3"><span class="style1"></span><span class="style1"></span><span class="style1">After </span></td> </tr> <tr> <td height="55" colspan="2"><span class="style5">Advert Message : </span></td> <td width="350"><span class="style1"> <textarea name="textarea" cols="40" rows="3"></textarea> </span></td> <td width="40"><span class="style1"></span></td> </tr> <tr> <td width="102"> </td> <td width="26"> </td> <td><span class="style1"></span></td> <td><span class="style1"></span></td> </tr> <tr> <td colspan="2"><label> <input type="submit" name="Submit" value="Submit" /> <input type="reset" name="Submit2" value="Reset" /> </label></td> <td><span class="style1"></span></td> <td><span class="style1"></span></td> <td><span class="style1"></span></td> </tr> </table> </body> </html> any help will be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/156996-simples-checking-no-empty-fields/ Share on other sites More sharing options...
Ken2k7 Posted May 5, 2009 Share Posted May 5, 2009 Hello Porkie, How comfortable are you with PHP? If you don't know any PHP, I suggest you read up on some PHP 101. Ken Link to comment https://forums.phpfreaks.com/topic/156996-simples-checking-no-empty-fields/#findComment-827043 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.