|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
How to verify the text of a button I am facing a problem with the php SQL and JavaScript! Let me explain my problem: I like the touch of a button <input type='button' ...> check if the value contained in a text field <input type='text' ...> is present in the database. But what makes this more difficult is that I do not like having to reload the current page (such as verified fields in JavaScript). I have an alert (''); if nickname is already in DB. Would you have an idea, how to verify the text of a button? HTML Code: <input type="text" name="login"/> <input type="button" name="verify_nickname" value="Verify"> |
#2
| |||
| |||
Re: How to verify the text of a button The only solution that comes to my for you is making use of AJAX. It enables you to make requests to servers, retrieve the result, and then process them without reloading your page. You can look to the jQuery JavaScript framework which enables you to have Ajax.
__________________ The FIFA Manager 2009 PC Game |
#3
| |||
| |||
Re: How to verify the text of a button Isn't there any other choice other than to use AJAX? In fact it is a php project for my studies. So use of AJAX makes a little uneven on the script from someone else, I do not know. I have seen some stuff on AJAX, but I do not understand too well how to access my database. |
#4
| |||
| |||
Re: How to verify the text of a button You make a PHP page that connects to the database to check whether or not the user is logged in. Your ajax send a query to this page and process the result. An example for exactly what you want to do How to use AJAX in a real-world situation? |
![]() |
|
Tags: javascript, sql |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add caption/text to Gnome menu button | INDRASENA | Operating Systems | 4 | 12-01-2011 05:10 AM |
Change The Text On XP Start Button | Rohit Kasle (RK) | Tips & Tweaks | 1 | 09-02-2010 05:50 PM |
How to Copy Text in a cell using the Command Button? | taher | Software Development | 5 | 06-01-2010 09:09 PM |
Change Start Button Text | mickey demaio | Tips & Tweaks | 3 | 23-03-2009 06:10 PM |
Change the text of a button | windows_user | Software Development | 4 | 16-01-2009 05:54 PM |