ccrevcypsys Posted December 31, 2007 Share Posted December 31, 2007 Is there a way that i can use php and java to be able to close a page after a person updates thier account like this if($_GET['r']=="D" && $_GET['id']>0){ $delete = mysql_query("DELETE FROM `servicerequested` WHERE id =".$_GET['id'])or die(mysql_error()); if($delete == TRUE){ header("Location: javascript:self.close()"); } } Quote Link to comment https://forums.phpfreaks.com/topic/83885-solved-closing-a-page-with-php/ Share on other sites More sharing options...
p2grace Posted December 31, 2007 Share Posted December 31, 2007 try this: if($_GET['r']=="D" && $_GET['id']>0){ $delete = mysql_query("DELETE FROM `servicerequested` WHERE id =".$_GET['id'])or die(mysql_error()); if($delete){ echo "<script type='text/javascript'>javascript:window.close();</script>"; } } Quote Link to comment https://forums.phpfreaks.com/topic/83885-solved-closing-a-page-with-php/#findComment-426887 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.