Hi,
Im creating a form to be used as an Event registration Form. so I need to check one of form fields (lets name it teamname) if this name which is input, is a valid team name or not.
this validation will be available from Database.
I have solved this by writing a php code in "Server Side Validation". but is there any better way?
Cuz in this code I couldnt use Joomla! API and its so hard to connect to database etc...
any suggestions?
Regards,
Milad
Im creating a form to be used as an Event registration Form. so I need to check one of form fields (lets name it teamname) if this name which is input, is a valid team name or not.
this validation will be available from Database.
I have solved this by writing a php code in "Server Side Validation". but is there any better way?
Cuz in this code I couldnt use Joomla! API and its so hard to connect to database etc...
any suggestions?
Regards,
Milad
Hi Milad,
It's simple to connect to the DataBase from the server-side validation box - all the Joomla API code is available to you. You will find several examples here using it.
There was an AJAX example doing this name-check posted here just a few days ago that would be ideal for you I think.
Bob
It's simple to connect to the DataBase from the server-side validation box - all the Joomla API code is available to you. You will find several examples here using it.
There was an AJAX example doing this name-check posted here just a few days ago that would be ideal for you I think.
Bob
This topic is locked and no more replies can be posted.
