Web Marketing Tool
Reseller
WMT .
PHP Form Fields
Referred By: Web Marketing Tool
Login

Added: 04/20/2012   |   Updated: 10 Years Ago
PHP Form Fields
Below are values to use for the name and id of form fields when creating a capture page form within a php file. You will notice that the name for several of the fields is php code. Use the PHP code where possible as these are designed to allow the form to pass the correct value to a 3rd party autoresponders if 3rd party autoresponders are being used (Aweber, GetResponse, etc).

ID Name Description Version Notes
fname <?php echo $titleFName; ?> Name OR First Name 2.2
lname <?php echo $titleLName; ?> Last Name 2.2
email <?php echo $titleEmail; ?> Email 2.2
phone <?php echo $titlePhone; ?> Phone 2.2
besttime besttime Best Time To Call 2.2
address <?php echo $titleAddress; ?> Address 2.2
city <?php echo $titleCity; ?> City 2.2
state <?php echo $titleState; ?> State 2.2
zipcode <?php echo $titleZipcode; ?> Zipcode 2.2
var1, var2, etc var1, var2, etc An additional variable. Any additional field you are adding to the form that does not appear above. 2.2 You can keep adding these sequentially to add as many variables as you need. Do not skip variables. If you are using var3, then you must also have var2 and var1.
vtitle1, vtitle2, etc vtitle1, vtitle2, etc Title of the additional variables 4.0 This is not required, but is best if added. Put the title of the matching var# field with the same #. For example, if var3 is for "Your Favorite Color", then make a hidden field vtitle3 with the value of "Your Favorite Color"
campaign campaign Campaign the contact came from 2.2 This is automatically created if a campaign is passed to the page.
group group The ID number of the contact group the contact is associated with. 2.2 This can also be specified when editing the capture page in the members area. If not specified in either location the contact is assigned to group 1.
redirect redirect The url a contact should be sent to after they fill out the form. 2.2 This can also be specified in the members area under "My Personal Info" or when editing the capture page. Setting the value here, within the php file, overides any value that is set elsewhere.
passdata passdata Set this to y or 1 to have contact data passed through the url to the redirect page 3.22 The following values are replaced in the redirect url:
~email~
~fname~


Additional Custom Variables
You can add additional custom variables. There is no limit to the amount of fields you can add to your form. You will have two input fields for each custom variable. One will be a visible field, and have var1, var2, etc for the name/id. The other will be hidden and called vtitle1, vtitle2, etc. See above for details.




DMCA.com Protection Status Authorize.net
Valid HTML! Valid CSS!


Reseller: WMT
|
Login
(502) 225-3237