Hi,
I have a form with two pages.
The submit button of the first page call the second page.
On the second page I have a query that save a record in a table.
When I call the form, the first page is displayed but the query is executed while the custom code is in the second page.
I cannot understand what is wrong.
Does anybody have any idea on what's going wrong?
Thanks
I have a form with two pages.
The submit button of the first page call the second page.
On the second page I have a query that save a record in a table.
When I call the form, the first page is displayed but the query is executed while the custom code is in the second page.
I cannot understand what is wrong.
Does anybody have any idea on what's going wrong?
Thanks
Hi graaooor,
Impossible to tell anything useful from the information here. ChronoForms is logical so if a record is being saved when the first page is loaded then there must be some code to do that.
I suggest that you add a Debugger action (or more than one) to let you track exactly what is happening and when.
Bob
Impossible to tell anything useful from the information here. ChronoForms is logical so if a record is being saved when the first page is loaded then there must be some code to do that.
I suggest that you add a Debugger action (or more than one) to let you track exactly what is happening and when.
Bob
Hi Bob,
Here is an example :
ecran01 :
On the "Design tab", I put a php code on the second page --> insert "DESIGN TAB" in a database.
When I test the form, the first page is displayed, and a record "DESIGN TAB" is inserted in my database !!!
When I submit the form, the second page is displayed. A record "DESIGN TAB" is inserted.
So I have 2 records inserted. Strange ...
ecran02:
Then I delete this custom code, and put it in the "Setup tab".
When I test the form, the first page is displayed. No record inserted, ok.
When I submit the form, the second page is displayed. A record "SETUP TAB" is inserted.OK.
Here is an example :
ecran01 :
On the "Design tab", I put a php code on the second page --> insert "DESIGN TAB" in a database.
When I test the form, the first page is displayed, and a record "DESIGN TAB" is inserted in my database !!!
When I submit the form, the second page is displayed. A record "DESIGN TAB" is inserted.
So I have 2 records inserted. Strange ...
ecran02:
Then I delete this custom code, and put it in the "Setup tab".
When I test the form, the first page is displayed. No record inserted, ok.
When I submit the form, the second page is displayed. A record "SETUP TAB" is inserted.OK.
This topic is locked and no more replies can be posted.