I had no problems creating the HTML form manually. The problem is that only the last of several selected items ends up in the database, the others are lost.
This is even though all the selected items appear in the URL on the top of the 'thank you' page.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Varables that are passed are all included in the "post" action in the forms and php files. The selected items must not be properly passed to the process.php file. You will have to verify this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, clearly the variables are not being processed properly.
When I get to the 'thank you' page all selected items are shown in the URL but only the last selected item is posted to the database and appears on the 'thank you' page.
This does look like a problem with process.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The form passes all variables and values to process.php. The varianbles that are selected in the form must have some value that is passed to process.php to indicate they have been selected. The thankyou page is merely created by process.php from the list passed by the form. The datafile is also created by process.php but in a separate function from the one that creates the thankyou page. The data file is setup to receive all fields and is initially empty. Process.php the appends to this file every time a form is submitted. If the syntax of the original data file is wrong, or the new data that is appended is wrong then you will get screwed up results. this must also be checked.
My suggestion, look at a working example form that is similar to the one you are debugging (create it yourself if you have to). Then look into the one that is not working to identify the differences.
If you are not comfortable with debugging the process.php file you can zip up your form and send me a copy to debug for you. You will just have to be patient until I have the time to dedicate to it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had no problems creating the HTML form manually. The problem is that only the last of several selected items ends up in the database, the others are lost.
This is even though all the selected items appear in the URL on the top of the 'thank you' page.
Varables that are passed are all included in the "post" action in the forms and php files. The selected items must not be properly passed to the process.php file. You will have to verify this.
Well, clearly the variables are not being processed properly.
When I get to the 'thank you' page all selected items are shown in the URL but only the last selected item is posted to the database and appears on the 'thank you' page.
This does look like a problem with process.php
The form passes all variables and values to process.php. The varianbles that are selected in the form must have some value that is passed to process.php to indicate they have been selected. The thankyou page is merely created by process.php from the list passed by the form. The datafile is also created by process.php but in a separate function from the one that creates the thankyou page. The data file is setup to receive all fields and is initially empty. Process.php the appends to this file every time a form is submitted. If the syntax of the original data file is wrong, or the new data that is appended is wrong then you will get screwed up results. this must also be checked.
My suggestion, look at a working example form that is similar to the one you are debugging (create it yourself if you have to). Then look into the one that is not working to identify the differences.
If you are not comfortable with debugging the process.php file you can zip up your form and send me a copy to debug for you. You will just have to be patient until I have the time to dedicate to it.