i'm sure this question has been asked, and answered here before. fogive me for being redundant, but i ran out of time to search and read before being late for work. i am hoping to make some progress when i return home. thanks for your understanding.
i simply need to know how to pass more than one form field to PHP. I've already made the MySQL db table that's going to store my data, so now i want to start using a form to populate that table, using INSERT.
According to the "beginners" book i'm reading for example, i can use insert.php as the html form action, and then in insert.php i have something like
$sql = "INSERT INTO tableName values ('$_POST[htmlFormData]')";
and i've verified that it works by using the command line to look at a test table which had only a couple of columns. okay, so that part i have. but my new table, the one i plan to use for an event calendar app i want to build, has 24 columns. how do i go about sending 24 values to the table? my approach so far, and also where i am stuck, is that i've made a form with 24 text areas, each with a different name of course. how do i tell my insert.php to make sense of those 24 different pieces of data?
i figure there's more than one way to skin this cat. so, if you're reading this and consider helping me, try to remember back when you were first learning-- what way would you do it so that it made the most sense to you, without using more advanced php functions-- just keeping it simple. i can handle complex, but i think at this point, i need to develp a better understanding of what is really going on-- why i need to do certain things w/ the code-- why PHP might need something different than my code example above to handle more than one html form field. maybe i'm on the right track?
here's what i have tried ('$_POST['textValue1'],['textValue2'],['textValue3'],['textValue4']) etc, but it obviously doesn't work, or i wouldn't be here asking for help.
😉