PHP Classes

File: delete.php

Recommend this page to a friend!
  Classes of Verne Joe   XML Guestbook   delete.php   Download  
File: delete.php
Role: Application script
Content type: text/plain
Description: delete word
Class: XML Guestbook
Create and manage guestbooks stored in XML files
Author: By
Last change:
Date: 19 years ago
Size: 412 bytes
 

Contents

Class file image Download
<?php

include('xml_class.php');
include(
'constant.php');

//creat a object og class xml_opration
$xml = new xml_opration;


$id = $_GET['id'];
if (
$id ==1){
     echo
"<div align=center>The first must be reserved</div>";
     echo
"<meta http-equiv=\"refresh\" content=\"2 url=index.php\">";
}
else{

$xml->deleteXmlFile($id);

$xml->writeXmlFile();


header("location:index.php");
}

?>