Login   Register  
PHP Classes
elePHPant
Icontem

File: delete.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2004-12-27 18:26
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");
}

?>