Hi
Sorry I know there are a few posts about multi page forms that take different paths based on field entries but they are a little advanced for me😶
What I want to do is have a simple form that people enter a 6 character code that they are provided with. If the code matches a select few codes then when they hit the submit button they are taken to a 'congratulations you a winner' page. If the code doesn't match they are directed to a 'thanks for coming page'
Quite happy to be directed to a post that lays this out for me if it already exists.
Thank you
Sorry I know there are a few posts about multi page forms that take different paths based on field entries but they are a little advanced for me😶
What I want to do is have a simple form that people enter a 6 character code that they are provided with. If the code matches a select few codes then when they hit the submit button they are taken to a 'congratulations you a winner' page. If the code doesn't match they are directed to a 'thanks for coming page'
Quite happy to be directed to a post that lays this out for me if it already exists.
Thank you
Hi eltonlester,
You don't need a multi-page for for this - just code in the OnSubmit After box that checks the submitted value and uses a PHP 'if' statement to show one message or the other.
Bob
PS If you want to be flashy it would be a nice application to use an AJAX lookup for.
You don't need a multi-page for for this - just code in the OnSubmit After box that checks the submitted value and uses a PHP 'if' statement to show one message or the other.
Bob
PS If you want to be flashy it would be a nice application to use an AJAX lookup for.
Cool, I've learnt some real PHP today. Thanks
This topic is locked and no more replies can be posted.