textbox help....
Posted: Tue Jun 28, 2005 3:04 am
i have a code here for my textfield not to accept if it is empty...
and i have a textfield that may accept a blank or null field and if the user type some text in this textfield, will be saved in my db....maybe someone out there that can help me construct a code....if i use the above code, the page will prompt the userthat he has to put some text inside the textfield...tnx in advance
Code: Select all
//check for implementing organizations - lead firm
if (empty($_POST['leadfirm']))
{
$lf = false;
$message .= 'You forgot to enter the project lead firm<br>';
}
else
{
$lf = $_POST['leadfirm'];
}