2nd Step: Configuring the form |
![]() ![]() ![]() |
We put <!-- FPP_ERROR --> tag to the form's HTML in a place where we'd like to display error messages. Now we need to point our form to be processed with Form Processor Pro. We do this by editing FORM tag's ACTION attribute to refer to the URL where Form Processor Pro resides. You can use either relative or absolute path. We need to set METHOD attribute as POST as well. And finally set ENCTYPE as MULTIPART/FORM-DATA. Form tag before: <form name="form1" method="post" action=""> Form tag after required corrections: <form name="form1" method="post" action="http://www.mydomain.com/fpp/index.php" enctype="multipart/form-data"> If you use relative path in the action parameter and do not use "Base href" tag, every page after first one must have action="index.php" parameter: <form name="form1" method="post" action="index.php"> That's all for the FORM tag. Now we need to give a unique name to our form, let's name it “contact_form”. We can do this by inserting HIDDEN field just after the FORM tag with the name “fpp_form” and value “contact_form”. Like this: <input name="fpp_form" type="hidden" value="contact_form">
Corrected HTML Code with highlighted changes:
If you have more than one form page, repeat this step few times. It's not necessary to add hidden field to pages other than first. Form saved as: contact.html |