-
help with ajax
Hi there, i have a webpage which takes in user details to store them into a database. i have 2 files html and php. the html file takes the input and sends it to the php file. when the html sends data to php the browser changes to the php file however i would like to stop this happening. when the input is not correct and the submit button is clicked on i would like to stop the html sending data to the php and to stay as it is with the incorrect data.
i have been told that AJAX is the solution to this problem as AJAZ can check the data in the background without changing the webpage. i am totaly new to AJAX and was hoping someone would please give me some guidance.
e.g.
<form action="http://localhost/PATIENT/filename.php" method="post" name="name" id= "name" onsubmit"error checks">
<input name="abc" type="text"/>
<input type="text" name="xxx"/>
</form>
<?php
database connection....
$abc = $_POST['abc'];
$xxx = $_POST['xxx'];
?>
Similar Threads
-
By akaballa in forum AJAX
Replies: 1
Last Post: 10-30-2008, 03:39 AM
-
By dbrook007 in forum AJAX
Replies: 0
Last Post: 04-22-2008, 07:40 AM
-
By geekdesign in forum AJAX
Replies: 2
Last Post: 09-16-2007, 08:38 PM
-
Replies: 0
Last Post: 06-18-2007, 11:06 AM
-
Replies: 0
Last Post: 02-09-2006, 02:26 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|