Jun 20th, 2012, 8:12 AM
Ok, you're using the API to create an external form, but you must have missed a step in the tutorial: http://docs.formtools.org/tutorials/api_...page_form/
The following line of code is wrong for an API external form to work correctly:
Keeping in mind that I've never used the following form tag attributes: accept-charset, target, enctype, style, __AddCode. So I don't know what ramifications those might cause in FormTools, especially if they are incorrect.
However, without changing those attributes, your form tag should have a different action, like so:
The following line of code is wrong for an API external form to work correctly:
PHP Code:
<form id="form_30" name="COSMETIC_REGISTRATION" action="ci-receipt.php" accept-charset="UTF-8" method="post" target="_self" enctype="multipart/form-data" style="margin:0px; /*MainDivStyle*/" __AddCode="here">
Keeping in mind that I've never used the following form tag attributes: accept-charset, target, enctype, style, __AddCode. So I don't know what ramifications those might cause in FormTools, especially if they are incorrect.
However, without changing those attributes, your form tag should have a different action, like so:
PHP Code:
<form id="form_30" name="COSMETIC_REGISTRATION" action="<?php echo $_SERVER["PHP_SELF"]?>" accept-charset="UTF-8" method="post" target="_self" enctype="multipart/form-data" style="margin:0px; /*MainDivStyle*/" __AddCode="here">