topical media & game development
basic-php-05-form4.php / php
<?php
// Debug info Display
function debugDisplay() {
?>
<pre>
_POST);
?>
_GET);
?>
</pre>
<?php
}
if (!isset(_GET['step']) {
// # # # ##
// Search/Add form
// # # # ##
case "1":
_POST['type']);
if (_POST['Submit'] . _POST['type'] == "Movie:Movie" &&
type[1]; ?>" named
"<?php echo _POST['Debug'] == "on") {
debugDisplay();
}
break;
// # # # ##
// Add Summary
// # # # ##
case "2":
_POST['type']);
?>
<h1>New <?php echo _POST['Name']; ?></h1>
<?php
switch (_POST['MovieYear']; ?></p>
<p><?php echo nl2br(stripslashes(_POST['Bio'])); ?></p>
<?php
break;
}
break;
// # # #
// Starting form
// # # #
default:
require('startform.php');
break;
}
}
?>
(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.