Jump to content

[SOLVED] Closing a page with php


ccrevcypsys

Recommended Posts

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()");
}
}

Link to comment
https://forums.phpfreaks.com/topic/83885-solved-closing-a-page-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.