topical media & game development
basic-php-appendix-ch08ex01.php / php
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<?php
first_xml_string = simplexml_load_string(_POST[posted])) {
//capture which element to change, set to integer
_POST[element_to_change];
_POST[change_value];
element_to_change]->price = first_xml_string);
echo "</pre>";
?>
</td></tr></table>
<?php
} else {
?>
<form method="POST" action=<ch08ex01.php>>
<input type="hidden" name="posted" value="true">
<table width="100%" border="0" cellpadding="6">
<tr>
<td><b><font face="Arial, Helvetica, sans-serif">Welcome to Beginning PHP5</font></b></td>
<td><b><font face="Arial, Helvetica, sans-serif">Chapter 08</font></b></td>
<td><b><font face="Arial, Helvetica, sans-serif">Exercise 01</font></b></td>
</tr>
<tr>
<td colspan="3" bgcolor="#EEEEEE"><font face="Arial, Helvetica, sans-serif" size="-1">XML File is:</font><br>
<?php
//display the XML file
echo "<pre>";
var_dump(
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.