So I have 2 php files. One is a form for people to sign up and register for different events by selecting “yes” or “no”. Some events are free while others cost money. I would like to be able to add the events up and get a total for my second form, which is the file showing the total. I’m not sure how I can assign a value to the items I need added up. Any help would be greatly appreciated.
Ideally the events information would be stored in a database. You would select the events you wanted to attend and then in the processing of the form, gather the cost for those events chosen and add them up then forward that info on to the next form. You could do this with arrays too but this concept is really what databases are designed for.
So your saying there is no way to make this happen then with my 2 forms.
No I’m not saying that, honestly I have no idea cause you haven’t provided any code. I suppose it could be done with hidden form fields that use array style names to relate to the checkboxes. But seriously if this is something where it is actually going to have people do real transactions of money, the database is the only way to go, any other way is asking for trouble.
Post your code.