Hi,
I am sure there is a simple solution to what i am asking. I don't know PHP so need a bit of help on this.
I am working on a project where users will buy a unique code from our website. When they buy the code it will be entered into a mysql database called 'thecode' and table called 'travelcode'.
I want to display a form on my website where they have to enter there first name, last name and their unique code into different fields, i have used the field plugin for this. I already have this set up.
I just need to know how to validate the first name, last name & unique code. ie. check that it actually exists in the database and if it does - display a success message, if it doesn't exist - display a error message.
Any help with this would be awesome, also examples would be greatly appreciated.
thanks in advance
I am sure there is a simple solution to what i am asking. I don't know PHP so need a bit of help on this.
I am working on a project where users will buy a unique code from our website. When they buy the code it will be entered into a mysql database called 'thecode' and table called 'travelcode'.
I want to display a form on my website where they have to enter there first name, last name and their unique code into different fields, i have used the field plugin for this. I already have this set up.
I just need to know how to validate the first name, last name & unique code. ie. check that it actually exists in the database and if it does - display a success message, if it doesn't exist - display a error message.
Any help with this would be awesome, also examples would be greatly appreciated.
thanks in advance