Hello all,
I am creating a script for a basic guestbook as part
of a class project. The same script does all three
functions required: gets the input via a form, inserts
it into the MySQL db, and displays the entries in the
db. Here is a basic outline of my script:
<code here>
<?php
if (isset($_POST['submit'])){
[take info from form and insert into db]
}
?>
[html page info here]
<form action="guestbook.php" method="post">
[form fields here]
<input type="submit" name="submit" value="Submit" />
[more html here]
<?php
[php code to display entries already in the db]
?>
</code here>
The problem I have is that the script will not enter
the first if conditional under any circumstances. I
have tried and retried and it just won't do it no
matter what. I know the other MySQL stuff at the
bottom is working, because if I enter data into the db
it will display on the page. My script just won't
enter that conditional to even run the INSERT stuff.
Any clues as to what I'm doing wrong?
Thanks!
-Nick
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hs4pafn/M=362329.6886308.7839368.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1123372395/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/