Jump to content


Photo

ajax to call php script


  • Please log in to reply
2 replies to this topic

#1 agile

agile

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 23 February 2011 - 11:32 AM

hi

i am in a problem in my javascript and ajax. here is the code.

function delet2(serial,idd){

new Ajax.Request('del.php', {
parameters: $('srl='+serial,'idd='+idd).serialize(true),
});
}
this delet2 function will call a php script named del.php and delete information. but it can not call. i can find the value of serial and idd but it can not cal del.php script.

and here is the del.php script to find the value

if(isset($_POST['srl']) && isset($_POST['idd'])){

$s = $_POST['srl'];
$i = $_POST['idd'];

}

pls help me where is the problem...

#2 thepoor666

thepoor666

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 04 March 2011 - 07:53 PM

Are all your files in the same directory? Have you tried returning any HTTP errors?

#3 derek.sullivan

derek.sullivan

    Jedi In Training

  • Members
  • PipPip
  • 343 posts
  • Gender:Male
  • Location:Georgia
  • Interests:preaching, programming, music, friends, outdoors, moves, books

Posted 12 March 2011 - 09:55 PM

try $_GET




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users