Updating MySQL DB when a link is clicked with PHP
I've got a PHP/MySQL setup.
I have a page where I want to place the user's selection between two values ('yes' and 'no' in this case) into the database based on which link they click.
Is there a way to do that from code on that page, or do I have to link two different .php pages (e.g. y.php and n.php) which will then do their respective additions to the database. Seems like there should be a better way, because what if there were six options instead of two?
Is that what all the ?=&action=newthread&forumid=9 stuff is in the URL at right now? A way to transmit variables to another page through a link? What does the <a href=... tag look like?
-E
|