Check Names

[Total: 0    Average: 0/5]

Check Names

This will check input names against those available in a database. It will check from a string entered to find all that have that sub string in them, and provide an updated suggestion to the user.

We have entered some usernames into our server side code. Using bob or mike will illustrate our code in action.

Now we need to define a function to run [ajaxNow()] in response to the button press.

Note in the open() call we pass the variable _value_ to the ajax php file using the GET or URL-Rewriting method.


Here is the PHP code – so you can see it (we just pretend to have a DB..)

Note that all PHP variables above have a space inserted after the dollar sign, and in real PHP code this space would be removed.

Times Viewed: 19

Leave a Reply

Your email address will not be published. Required fields are marked *