0

I have a php user front-end and would like to validate a some fields to stop duplicates the database is oracle and the form is quite large i was wondering if it is possible with Javascript or ajax to run a select statement using php code check the values and return true or flase without refeshing the page like with ajax in asp.net

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by phpbeginners
0

Yep, it's possible. Just have a 'foo' div next to the input boxes, and then have a function set to 'onkeyup', which refers to a php page which checks the database and returns true or false, and then modifies the div.
You might want to learn Ajax for that, though.

0

Try this!

/*
-------------------------------------------------------------------------
JavaScript Form Validator (gen_validatorv31.js)
Version 3.1.1
Copyright (C) 2003-2008 JavaScript-Coder.com. All rights reserved.
You can freely use this script in your Web pages.
You may adapt this script for your own needs, provided these opening credit
lines are kept intact.

The Form validation script is distributed free from JavaScript-Coder.com
For updates, please visit:
http://www.javascript-coder.com/html-form/javascript-form-validation.phtml

Questions & comments please send to form.val at javascript-coder.com
-------------------------------------------------------------------------
*/

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.