Jun 12th, 2012, 11:03 AM
Hello michatmaster7, thanks for taking a look again and responding.
Yes, you are correct about the matching of the Submit button names. Actually, in the last version of the code they do match.
And in subsequent testing I simply removed spacing so that there was no need to place an Underline as a gap filler.
So the the name for the Submit button became "sendguess".
I have just gone through all the steps for another form and it is now Complete and Online.
After going through the Initialization process I cam back and changed the PHP head in my new form just called "vipform.php"
<?php
require_once('formtools/global/api/api.php');
$fields = ft_api_init_form_page(7);
$params = array(
"submit_button" => "sendmyguess",
"next_page" => "nothanks.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
Just as extra information I added the form name and id from the Form settings Name itself:
<form name = "BigContest" id= "BigContest" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
The "no thanks" PHP file is renamed and I use this code as the Submit
<p>Submit
<input type="submit" name="sendmyguess" id="sendmyguess" value="Submit" />
Same old nothing.
This new form submits to itself, stays there, does not move on to "nothanks.php".
What I notice is that FormTools wants to use the Submit Button value and create and save a field value for it.
I removed this field from my previous Form.
This time, in this new test form I KEPT the SUBMIT field and am allowing the Post to send "Submit" to a field for each Post.
Here's the html email template from this new form:
<p>
There has been a submission made through your form, {$FORMNAME}:
</p>
<table cellpadding="0" cellspacing="1">
<tr>
<td style="font-weight: bold">ID</td>
<td>{$SUBMISSIONID}</td>
</tr>
{if $ANSWER_id}
<tr>
<td style="font-weight: bold">Id</td>
<td>{$ANSWER_id}</td>
</tr>
{/if}
{if $ANSWER_fname}
<tr>
<td style="font-weight: bold">Fname</td>
<td>{$ANSWER_fname}</td>
</tr>
{/if}
{if $ANSWER_lname}
<tr>
<td style="font-weight: bold">Lname</td>
<td>{$ANSWER_lname}</td>
</tr>
{/if}
{if $ANSWER_city}
<tr>
<td style="font-weight: bold">City</td>
<td>{$ANSWER_city}</td>
</tr>
{/if}
{if $ANSWER_email}
<tr>
<td style="font-weight: bold">Email</td>
<td>{$ANSWER_email}</td>
</tr>
{/if}
{if $ANSWER_guess1}
<tr>
<td style="font-weight: bold">Guess1</td>
<td>{$ANSWER_guess1}</td>
</tr>
{/if}
{if $ANSWER_guess2}
<tr>
<td style="font-weight: bold">Guess2</td>
<td>{$ANSWER_guess2}</td>
</tr>
{/if}
{if $ANSWER_guess3}
<tr>
<td style="font-weight: bold">Guess3</td>
<td>{$ANSWER_guess3}</td>
</tr>
{/if}
{if $ANSWER_modified}
<tr>
<td style="font-weight: bold">Modified</td>
<td>{$ANSWER_modified}</td>
</tr>
{/if}
{if $ANSWER_ip}
<tr>
<td style="font-weight: bold">Ip</td>
<td>{$ANSWER_ip}</td>
</tr>
{/if}
{if $ANSWER_password}
<tr>
<td style="font-weight: bold">Password</td>
<td>{$ANSWER_password}</td>
</tr>
{/if}
{if $ANSWER_sendmyguess}
<tr>
<td style="font-weight: bold">sendmyguess</td>
<td>{$ANSWER_sendmyguess}</td>
</tr>
{/if}
<tr>
<td style="font-weight: bold">Last modified</td>
<td>{$LASTMODIFIEDDATE}</td>
</tr>
<tr>
<td style="font-weight: bold">IP Address</td>
<td>{$IPADDRESS}</td>
</tr>
</table>
<p>
Submission made: {$SUBMISSIONDATE}
</p>
Yes, you are correct about the matching of the Submit button names. Actually, in the last version of the code they do match.
And in subsequent testing I simply removed spacing so that there was no need to place an Underline as a gap filler.
So the the name for the Submit button became "sendguess".
I have just gone through all the steps for another form and it is now Complete and Online.
After going through the Initialization process I cam back and changed the PHP head in my new form just called "vipform.php"
<?php
require_once('formtools/global/api/api.php');
$fields = ft_api_init_form_page(7);
$params = array(
"submit_button" => "sendmyguess",
"next_page" => "nothanks.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
Just as extra information I added the form name and id from the Form settings Name itself:
<form name = "BigContest" id= "BigContest" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
The "no thanks" PHP file is renamed and I use this code as the Submit
<p>Submit
<input type="submit" name="sendmyguess" id="sendmyguess" value="Submit" />
Same old nothing.
This new form submits to itself, stays there, does not move on to "nothanks.php".
What I notice is that FormTools wants to use the Submit Button value and create and save a field value for it.
I removed this field from my previous Form.
This time, in this new test form I KEPT the SUBMIT field and am allowing the Post to send "Submit" to a field for each Post.
Here's the html email template from this new form:
<p>
There has been a submission made through your form, {$FORMNAME}:
</p>
<table cellpadding="0" cellspacing="1">
<tr>
<td style="font-weight: bold">ID</td>
<td>{$SUBMISSIONID}</td>
</tr>
{if $ANSWER_id}
<tr>
<td style="font-weight: bold">Id</td>
<td>{$ANSWER_id}</td>
</tr>
{/if}
{if $ANSWER_fname}
<tr>
<td style="font-weight: bold">Fname</td>
<td>{$ANSWER_fname}</td>
</tr>
{/if}
{if $ANSWER_lname}
<tr>
<td style="font-weight: bold">Lname</td>
<td>{$ANSWER_lname}</td>
</tr>
{/if}
{if $ANSWER_city}
<tr>
<td style="font-weight: bold">City</td>
<td>{$ANSWER_city}</td>
</tr>
{/if}
{if $ANSWER_email}
<tr>
<td style="font-weight: bold">Email</td>
<td>{$ANSWER_email}</td>
</tr>
{/if}
{if $ANSWER_guess1}
<tr>
<td style="font-weight: bold">Guess1</td>
<td>{$ANSWER_guess1}</td>
</tr>
{/if}
{if $ANSWER_guess2}
<tr>
<td style="font-weight: bold">Guess2</td>
<td>{$ANSWER_guess2}</td>
</tr>
{/if}
{if $ANSWER_guess3}
<tr>
<td style="font-weight: bold">Guess3</td>
<td>{$ANSWER_guess3}</td>
</tr>
{/if}
{if $ANSWER_modified}
<tr>
<td style="font-weight: bold">Modified</td>
<td>{$ANSWER_modified}</td>
</tr>
{/if}
{if $ANSWER_ip}
<tr>
<td style="font-weight: bold">Ip</td>
<td>{$ANSWER_ip}</td>
</tr>
{/if}
{if $ANSWER_password}
<tr>
<td style="font-weight: bold">Password</td>
<td>{$ANSWER_password}</td>
</tr>
{/if}
{if $ANSWER_sendmyguess}
<tr>
<td style="font-weight: bold">sendmyguess</td>
<td>{$ANSWER_sendmyguess}</td>
</tr>
{/if}
<tr>
<td style="font-weight: bold">Last modified</td>
<td>{$LASTMODIFIEDDATE}</td>
</tr>
<tr>
<td style="font-weight: bold">IP Address</td>
<td>{$IPADDRESS}</td>
</tr>
</table>
<p>
Submission made: {$SUBMISSIONDATE}
</p>