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 */
----- Original Message -----
From: "Niel Archer" <niel@xxxxxxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Saturday, January 27, 2007 9:07 PM
Subject: Re: Am I missing something?
Hi
Alright, I did that. I now get :
INSERT INTO domains ( picture, thumbnail ) values( '', '')
and no data entered.
Then for some reason your variables are empty. Make sure they have data
on entry to the function. If they don't keep backtracking until you
find where it's lost.
Niel
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php