...

View Full Version : Check Availability button



raymanw
11-06-2006, 03:30 AM
I have a form that accepts user info.
I want to create a button that enables the user to check for the availability of the username entered before continuing with the rest of the form.

I have tried using the button onclick to call a JS function. The JS function have codes to compare the username with database select.

Is my approach wrong?
Can the button onclick event call a PHP function?

Thanks.

gunman
11-06-2006, 07:20 AM
Sure it could call php function. Onclick event just will redirect you to some php file where you could check for a user name. You could take user name from form with getElementById(js property).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum