I'm in the process of writing a comment system for my blog.
Each blog page will be on a PHP document with an HTML form where the viewer can type in their name and comment in a form at the bottom.
echo "<form action='postcomment.php' method='post'>"; echo "<input type='text' name='PosterName'/>" . "<br/>"; echo "<textarea rows='7' cols='50' name='Comment'></textarea>"; echo "<input type='submit' />"; echo "</form>";
The postcomment.php file will connect to the database, but I'm having trouble when it comes to individual tables. My table names are according to the blog ID (not a variable, just the name of the page). How can I turn the blog ID into a variable on the blog entry page, and how can I pass it to the postcomment.php file so that the correct table can be accessed?
None of these individual blog pages have been created yet, so if it would be easier to use a different format, let me know.