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']); } ?> 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 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! Link to comment https://forums.phpfreaks.com/topic/73247-form-help/#findComment-369556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.