Even after reading up on it I'm not sure how to use if(isset(... for what I'm I'm trying to do. Can someone point me in the right direction please before I pull my hair out?
My code
if(isset($_POST['email1'])){
mysql_query("INSERT INTO rating_invite SET
user_id='$_SESSION[user_id]',
email='$em1'");}
if(isset($_POST['email2'])){
mysql_query("INSERT INTO rating_invite SET
user_id='$_SESSION[user_id]',
email='$em2'");}
Just need a quick pointer as to where I'm going wrong.