Forums

Validate an input from database

MeeDNite 07 Mar, 2009
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
GreyHead 07 Mar, 2009
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
MeeDNite 08 Mar, 2009
Thnx for response.
I just thought I might be wrong😀 but it works.
and once again, the day is saved by ChronoForms!

Cheers,
Milad
This topic is locked and no more replies can be posted.