Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 28-09-2009
Member
 
Join Date: Jun 2009
Posts: 87
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">
Reply With Quote
  #2  
Old 28-09-2009
Member
 
Join Date: May 2008
Posts: 2,383
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
Reply With Quote
  #3  
Old 28-09-2009
Member
 
Join Date: Jun 2009
Posts: 87
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.
Reply With Quote
  #4  
Old 28-09-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
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?
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to verify the text of a button"
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


All times are GMT +5.5. The time now is 09:35 PM.