0

Hello I am a beginner and need some guidance on how to achieve this using jQuery

I want to post one text field value using Ajax to a PHP script that will take this value and check it against a database query. If the value exists I want the query to also retrieve other matching row data.

This data should then be sent back to the Ajax script.I then need to access this data so I can manipulate it using jQuery.

Can anyone give me a an idea of how to achieve this?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Nirm
  • 7
  • 2

1 Answers1

0

You need to use jQuery's AJAX function

 var request = $.ajax({
     url: "yourscript.php",
     data: {

     }
 });

 request.done(function(data){

 });
arhea
  • 454
  • 2
  • 5
  • Thanks for your reply, This is what I have so far: I am using this in Wordpress `jQuery("#ajaxquery").live( "submit" , function(){ var formdata = jQuery(this).serialize(); jQuery.post( "login_new.php", formdata, function( data ) { jQuery("#my").html ( data ); }); return false; });` – Nirm Nov 28 '12 at 10:21