I created a form using phpFormGenerator and I use a MySQL database. The setup seemed to go fine. However, when I enter data and click submit, I get an HTTP 500 error saying the web site can't display the page. In my directory, I have the following structure:
AlumniForm/
AlumniForm/forms
AlumniForm/use
AlumniForm/use/AlumniRegistration
AlumniForm/use/sampleform
AlumniForm/
The form I created is located in AlumniForm/use/AlumniRegistration/. When I click submit it does not give me the Thank you page. It gives the error above. Interestingly, the form I created also appears in AlumniForm/forms/ and it works fine. Also, the forms in AlumniForm/use/sampleform/ work fine. Why does the form1.html in AlumniForm/use/AlumniRegistration not work? It has a process.php file in that directory just like the other forms.
Thank you,
-David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
One more thing...
I also cannot view the AlumniForm/use/AlumniRegistration/admin/index.php page either. I get an HTTP 500 can't view page error as well. Why is this? Thank you.
-David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
AlumniForm/
Likely the location of your generator and since you have a forms folder I assume you are using version 2.09 of the generator.
AlumniForm/forms
In version 2.09 this is the temporary folder where the generated form is stored while being processed. This folder will hold a copy of the last form generated.
AlumniForm/use
This is the base folder where all new forms are transfered to when complete. In your case that last completed form "AlumniRegistration" was copied from the temporary folder to this use/{formname} folder.
AlumniForm/use/AlumniRegistration
This is your new form folder and is the folder that contains files you should be using for your new form.
AlumniForm/use/sampleform
This is a sample form folder so I'm not entirely sure what is in it.
When you click submit the form1.html file is passing all form data to the process.php file. The error is generated when the host either can not locate the file as it expects to or the host does not recognize the php file type.
This is typically a problem with file or folder permissions. Check the file and folder permissions of the temporary form since you say this works and modify your form files and folders to be identical.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I created a form using phpFormGenerator and I use a MySQL database. The setup seemed to go fine. However, when I enter data and click submit, I get an HTTP 500 error saying the web site can't display the page. In my directory, I have the following structure:
AlumniForm/
AlumniForm/forms
AlumniForm/use
AlumniForm/use/AlumniRegistration
AlumniForm/use/sampleform
AlumniForm/
The form I created is located in AlumniForm/use/AlumniRegistration/. When I click submit it does not give me the Thank you page. It gives the error above. Interestingly, the form I created also appears in AlumniForm/forms/ and it works fine. Also, the forms in AlumniForm/use/sampleform/ work fine. Why does the form1.html in AlumniForm/use/AlumniRegistration not work? It has a process.php file in that directory just like the other forms.
Thank you,
-David
One more thing...
I also cannot view the AlumniForm/use/AlumniRegistration/admin/index.php page either. I get an HTTP 500 can't view page error as well. Why is this? Thank you.
-David
Lets get some basics out of the way first.
AlumniForm/
Likely the location of your generator and since you have a forms folder I assume you are using version 2.09 of the generator.
AlumniForm/forms
In version 2.09 this is the temporary folder where the generated form is stored while being processed. This folder will hold a copy of the last form generated.
AlumniForm/use
This is the base folder where all new forms are transfered to when complete. In your case that last completed form "AlumniRegistration" was copied from the temporary folder to this use/{formname} folder.
AlumniForm/use/AlumniRegistration
This is your new form folder and is the folder that contains files you should be using for your new form.
AlumniForm/use/sampleform
This is a sample form folder so I'm not entirely sure what is in it.
When you click submit the form1.html file is passing all form data to the process.php file. The error is generated when the host either can not locate the file as it expects to or the host does not recognize the php file type.
This is typically a problem with file or folder permissions. Check the file and folder permissions of the temporary form since you say this works and modify your form files and folders to be identical.