Hi there... newbee and confused here π
I am making my first steps in PHP/SQL by creating a low-tech guestbook (wow, that's something new! :o)
So far I have created these two files... The first to get some info, the next to put it in the 'guestbook' table..
Somehow the vars don't get passed on to the next file, I get the error:
Notice: Undefined variable: naam in /home/didact/nvon/public_html/natkunde/vs/create_entry.php on line 9 (and the same for 'lokatie')
How am i supposed to get them to the next file???
Who can help me out here??
Thanx in advance!!
<FORM METHOD=POST ACTION="create_entry.php">
<B>Naam</B>
<input type=text size=40 name=naam>
<BR>
<B>Lokatie</B>
<input type=text size=40 name=lokatie>
<BR>
<input type=submit name=submit value="Sign!">
<input type=reset name=reset value="Start Over">
(the 'create_entry file....)
<?PHP
include("connectdb.php");
$query = "insert into guestbook
(naam,lokatie) values
('$naam', '$lokatie')"
;
mysql_query($query) or die (mysql_error());
?>