Script: http://www.developphp.com/video/JavaScript/Ajax-Post-to-PHP-File-XMLHttpRequest-Object-Return-Data-Tutorial
Learn to program the javascript XMLHttpRequest Object to easily send Ajax HTTP requests to your PHP parsing scripts, and get return data from submitted forms or any type of interaction that takes place on your website.
Original source
24 responses to “Ajax Tutorial : Post to PHP File XMLHttpRequest Object Return Data Javascript”
never seen a better & clearer tutorial. thank yıou!
hi, how do I need to change the code if I want to give the whole form an ID … thanks (I tried a lot nothing worked)
Thank you so much for your tutorials! Too often I feel like I'm being discouraged from learning how to code. Your tutorials are a life saver. Thanks for being a great teacher.
AMAZING!!! Took me so long to find this…
what about if the php returns errors to the javascript???
Nice tutorial,
What if I don't want the previous data to be on the screen??
Been searching for days for info on how to get return data. Thank you for this tutorial. Excellen!
how can i call the function from inside a confirmation box i tried doing this and it calls the function without any confirmation coming up?
It does not work for me as well. I have the files online but I just get a blank screen? Anyone who can help me?
thanks so much! saved me!
hello Adam! can you please explain line 11 in detail. what is that equal for infront of the "lastname=" ? I apprecaite if you can explain that line in detial
thanks
deprecated
this is possible, when I copy this text, and run it on the server and get back from PHP value of calculation with this function…and use it in the hml file ? if yes,then how ? please
Thanks for your tutorial, can you please explain how to insert header "X-Requested-With: XMLHttpRequest"
3:04
Thanks Adam!!!
Why do you sound like Stephen Hawking?
I am getting an undefined index error. isset() or empty() is not solving it. Any help is appreciated.
Exceedingly helpful, wish I came across it sooner. Thank you.
Hi , thx for this tutorial , if i want to use the values of variables on the same page how can I do that? (i want to do $_post[] on the same page without echo )
thanks Adam ! , really learned allot from your tutorial 🙂
nice video bro. Thx for showing us 🙂
Thanks Adam. I've been looking for this for almost two days and this is the first time that someone explains it all and that it's actually working. Thanks one more time.