You have to move everything in the WebForm directory to the destination location (assuming you are using all the various features such as file upload, database, etc). The bare essentials are the form1.html and the process.php files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Above, you said:
"You have to move everything in the WebForm directory to the destination location (assuming you are using all the various features such as file upload, database, etc). The bare essentials are the form1.html and the process.php files. "
Are you sure?
He already has a web page written and is asking how to copy and paste the form created by phpformgen INTO that page. If he/she copies form1 (the one created by phpformgen) into the 'destination' (I'm assuming you mean where the existing web page is, that page (form1) won't have the formatting and layout of the original web page.
Am I correct to assume (only because there aren't any docs to refer to), that he would have to cut and paste the form code from form1 into the existing web page and then rename that page to 'form1.htm' or 'form1.html'; or would it be 'form1.php?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Moving the form1.html code into another html page can be somewhat tricky for the average web designer. When a form is generated the form1.html file is created in a folder who's name is determined during the form generation. This folder contains all the files necessary to use the form. When you move the form1.html contents to another html file (can be any html, php, or other web page file as long as you know the new file type requirements) file you need to answer the following questions:
1.) How much of the original form do you want to preserve?
2.) Where will the new form file reside?
The answer to question 1 will determine which files from the original form folder that you need to consider for reuse.
The answer to question 2 will determine which files and folders that need to be moved to the new location.
Beyond these two basic questions you can created any page you want that includes your generated forms.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How to copy and paste my Form into web page?
I have generated a Form that is located at: http://mywebsite.com/WebPages/Form/use/WebForm/form1.html.
I have moved just the Form code to this location:
http://mywebsite.com/WebPages/Form.html
It looks fine, but it won't execute, I get a long list of Warnings when I select Submit.
I'm sure I need to move more than the Form code, to make this work correctly.
Based on the locations listed above, can someone tell me what I need to change to make this form work on my web page?
Do other files need to be moved to http://mywebsite.com/WebPages/ ?
If so, which ones?
If not, waht is the best way to incorporate the form I generated into a web page of mine?
Thank you.
You have to move everything in the WebForm directory to the destination location (assuming you are using all the various features such as file upload, database, etc). The bare essentials are the form1.html and the process.php files.
Debug:
1) Check the form tag where is the data being posted to? The handler file would need to be included and the directory paths.
Okay.
What is the handler file?
Above, you said:
"You have to move everything in the WebForm directory to the destination location (assuming you are using all the various features such as file upload, database, etc). The bare essentials are the form1.html and the process.php files. "
Are you sure?
He already has a web page written and is asking how to copy and paste the form created by phpformgen INTO that page. If he/she copies form1 (the one created by phpformgen) into the 'destination' (I'm assuming you mean where the existing web page is, that page (form1) won't have the formatting and layout of the original web page.
Am I correct to assume (only because there aren't any docs to refer to), that he would have to cut and paste the form code from form1 into the existing web page and then rename that page to 'form1.htm' or 'form1.html'; or would it be 'form1.php?
Moving the form1.html code into another html page can be somewhat tricky for the average web designer. When a form is generated the form1.html file is created in a folder who's name is determined during the form generation. This folder contains all the files necessary to use the form. When you move the form1.html contents to another html file (can be any html, php, or other web page file as long as you know the new file type requirements) file you need to answer the following questions:
1.) How much of the original form do you want to preserve?
2.) Where will the new form file reside?
The answer to question 1 will determine which files from the original form folder that you need to consider for reuse.
The answer to question 2 will determine which files and folders that need to be moved to the new location.
Beyond these two basic questions you can created any page you want that includes your generated forms.