http://www.php-mysql-tutorial.com/wikis/php-tutorial/creating-a-guestbook-using-php-and-mysql.aspx
I spent a lot of time attempting to figure out what was wrong with the code since it wouldnt work. In the end, the code was too complex and I ended up deleting many essential things. In the end, i ended up writing my own, but the experience from my previous attempts helped me a lot. I created fields for both names and comments.
However, my checking the validation still did not work. After a lot of puzzling and trialling and erroring, i finally found this site
This allowed me to confirm that setting a variable to an html id was actually possible. Also, it told me what i was doing wrong. I had used " instead of '
After fixing this, it was all perfect.
No comments:
Post a Comment