so basically what i am trying to do is this....
I am writing a ballot/poll type system. I am keeping all of the questions in a mysql database so they are easily managed and maintained. now, when a user fills out this form it posts to a new script which calls a function that inserts everything back into a sql database.given that there could be any number of categories and questions, how do i pass this all back into a function?
form example
<form action="post.php" method="post">
Category 1
<input type=text name="category1[1]">
<input type="text" name="category1[2]">
</form>
post.php
<?
class poll {
function insert2DB(???????????) {
//here is were i will insert it into the db
}