I am developing a site right now and trying to get a specific form created.
I want a form that allows users to enter a secret code (ideally I would like to treat these codes like sensitive data.. not sure if that is something I need to mention or not). When the user submits it should send a message tot he server to launch a php script that will lookup the code (passed as a parameter) against a list of codes I have in my database. The php script will determine which Case this is (code valid and identifies which product this is for, code found but previously entered, code expired, code not found, etc..). Depending on the case, the user is taken to a page explaining the problem and gives the user another chance to enter the code, or else takes them to appropriate product page.
As I see this, the code lookup is done outside of Chornoforms. I just want the form to call a script and then depending on the result be taken to one of several pages.
I can't seem to find an example that outlines how to do this. Can anyone help me out?
I want a form that allows users to enter a secret code (ideally I would like to treat these codes like sensitive data.. not sure if that is something I need to mention or not). When the user submits it should send a message tot he server to launch a php script that will lookup the code (passed as a parameter) against a list of codes I have in my database. The php script will determine which Case this is (code valid and identifies which product this is for, code found but previously entered, code expired, code not found, etc..). Depending on the case, the user is taken to a page explaining the problem and gives the user another chance to enter the code, or else takes them to appropriate product page.
As I see this, the code lookup is done outside of Chornoforms. I just want the form to call a script and then depending on the result be taken to one of several pages.
I can't seem to find an example that outlines how to do this. Can anyone help me out?
This topic is locked and no more replies can be posted.