Creating Additional Modification Forms
It is possible create additional modification forms. You can even split your existing modification forms into multiple pages. To do this, follow these three steps:
- Create an additional template
- Insert your form in it
- Link to it
1. Create New Template:
To add a new modification form page, first you need to create a template for it.
You will create this template using "member" action, so that when a user tries to see this page, his/her authentication will be checked.
To create a new template, go to Admin -> Templates -> Add New. Then choose "Member" action.
Give it a easy-to-remember name such as "modify_contact", and choose to create it under "member" directory. For the body part of your new template, follow the instructions on the step 2 below:
2. Making the form code:
Your new modification form will have three essential elements:
-
Form definition and hidden fields:
Your form should include the basic form definition and hidden fields. The form tag describes what to do with the submitted information. The hidden fields tell PM Premium what this form would like to do, and who the user is:
<FORM ACTION="pm.cgi" METHOD="post">
<INPUT TYPE="hidden" NAME="action" VALUE="modified">
<INPUT TYPE="hidden" NAME="session" VALUE="%%session%%">
-
Data entry form fields
These are the form input fields for the data entry. You can create these form tags yourself or you can have the database wizard to create them for you. To use the database wizard, go to Admin -> Database -> Fields -> Step 2 and find the modification form source code at the bottom of the page. In the HTML code find the lines where you see the data fields you would like to use on your form. Here is an example:
First Name: <INPUT TYPE="text" NAME="firstname" VALUE="%%firstname%%">
-
Submit Button
Your form will end with a submit button and an end of form tag. This is always the same code as below:
<INPUT TYPE="submit" NAME="submit" VALUE="Modify">
</FORM>
3. Linking to the new page:
Once the new template is created, you will be given a link to it. Go to the Template Editor at Admin -> Templates -> Edit and find the template you would like to link from. Add the link code to the page:
<A HREF="pm.cgi?action=member&temp=modify_contact&session=%%session%%">Modify your contact information!</A>





