Login   Register  
PHP Classes
elePHPant
Icontem

File: insert.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  >  insert.php  >  Download  
File: insert.php
Role: Application script
Content type: text/plain
Description: insert new word
Class: XML Guestbook
Create and manage guestbooks stored in XML files
Author: By
Last change:
Date: 2004-12-27 18:24
Size: 470 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;

$title $xml->formatXmlString($_POST['title']);
$author $xml->formatXmlString($_POST['author']);
$content $xml->formatXmlString($_POST['content']);
$picture $_POST['picture'];
$id $_POST['id']+1;

$xml->insertXmlFile($id$title$author$content$picture);

$xml->writeXmlFile();

header("location:index.php");

?>