Jun 13th, 2011, 4:39 PM
(This post was last modified: Jun 13th, 2011, 4:46 PM by prometheus.)
Well, I fixed the error.
However, I'm not 100% sure what exactly caused the fix.
For anyone reading this thread, here's what steps I took to resolve the issue:
1. Changed api include to: $_SERVER['DOCUMENT_ROOT'] . "/formtools/global/api/api.php";
2. Changed "submit_button" => "submit_button" to "submit_button" => "property_address"
(I referenced the name attribute of a text field in the form, and used an image-based submit button
3. Renamed the dynamic variable $form_tools_form_id to just $form_id; I then reference this in $fields = ft_api_initi_form_page($form_id);
This makes it easier for non-hard-coded forms.
4. Added a name="<?=$formname;?>" into the <form> tag, and defined $formname at the top of the php file as "prelisting" (in this example)
5. Uploaded a new API core to /global/api/ (downgraded to 1.0.1)
Once these changes were made, I was able to submit new form submissions. Again, I'm not sure which one of these exactly did the trick. Perhaps Ben would like to comment on this (not a huge priority, but for other people who've run into the same problem).
On that note, glad it's working. Hopefully my notes above help point others in the right direction.
Peace.
-p
However, I'm not 100% sure what exactly caused the fix.
For anyone reading this thread, here's what steps I took to resolve the issue:
1. Changed api include to: $_SERVER['DOCUMENT_ROOT'] . "/formtools/global/api/api.php";
2. Changed "submit_button" => "submit_button" to "submit_button" => "property_address"
(I referenced the name attribute of a text field in the form, and used an image-based submit button
3. Renamed the dynamic variable $form_tools_form_id to just $form_id; I then reference this in $fields = ft_api_initi_form_page($form_id);
This makes it easier for non-hard-coded forms.
4. Added a name="<?=$formname;?>" into the <form> tag, and defined $formname at the top of the php file as "prelisting" (in this example)
5. Uploaded a new API core to /global/api/ (downgraded to 1.0.1)
Once these changes were made, I was able to submit new form submissions. Again, I'm not sure which one of these exactly did the trick. Perhaps Ben would like to comment on this (not a huge priority, but for other people who've run into the same problem).
On that note, glad it's working. Hopefully my notes above help point others in the right direction.
Peace.
-p