Re: Am I missing something?

From: Date: Sun, 28 Jan 2007 14:52:58 +0000
Subject: Re: Am I missing something?
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-43004@lists.php.net to get a copy of this message
Alexander wrote:
They should have data. here's the form code: function write_form() {
        echo "<form method='post' action='{$_SERVER['PHP_SELF']}'>";
        echo "<p>Enter url of large picture: <input type='text' name='picture' />";
        echo "<p>Enter url of thumbnail: <input type='text' name='thumbnail' />";
        echo "<p><input type='submit' value='Add to Database' />";
        echo "</form>";
} I've done everything excatly how my PHP book says to /* i now officially hate all code examples in books, they never work */
The book is probably expecting you to have register_globals enabled. DO NOT ENABLE IT! Instead, read the following and adapt what the book is giving you to work without it. Reasons for not enabling register_globals are also given on this page... http://php.net/register_globals -Stut

« previous php.db (#43004) next »