All pastes #405767 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-21 22:32 UTC
rendered paste body
<html>
        <head>
                <title>Add a database</title>
        </head>
        <body>
                <form action="adddb.php" method="post">
                        What is the name of the new database?
                        <input type="text" name="dbName"><br />
                        <input type="submit" name="submit" value="Submit"> <input type="reset">
                </form>
        </body>
</html>
------------------------------------------------------------
<?php
echo "<p>";
$dbName=$_POST['dbName'];
print_r($_POST);
if(isset($_POST['Submit'])){

        echo $dbName;
}
else {
        echo "error with if statement";
}
echo "</p>";
echo "</body></html>"
?>