ccrevcypsys Posted October 14, 2007 Share Posted October 14, 2007 what is the syntax to say that if an input form is empty. This is what i have <?php if(empty($_POST['recieve_cust']){ $record["recieve_cust"] = $db->mySQLSafe($_POST['recieve_cust_friend']); }else{ $record["recieve_cust"] = $db->mySQLSafe($_POST['recieve_cust']); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/73247-form-help/ Share on other sites More sharing options...
teng84 Posted October 14, 2007 Share Posted October 14, 2007 empty or isset can check your field when empty but better to use isset for forms validation Quote Link to comment https://forums.phpfreaks.com/topic/73247-form-help/#findComment-369518 Share on other sites More sharing options...
rj2kix Posted October 14, 2007 Share Posted October 14, 2007 i figured out a way that seems to work up to 98% accurately, with maxmind geoip thanks ythough! Quote Link to comment https://forums.phpfreaks.com/topic/73247-form-help/#findComment-369556 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.