This is just what I have been looking for. It's brill. Clear and concise. I like the way you can run PHP script WITHOUT having to refresh the home page. Thank you for sharing the information.
Thank you so much!!!!!!!!! After spending a whole day (and night) trying to figure out what's going wrong, I had the great opportunity to find your video! Again, thanks a lot!
AJAX means to use client programming to update or change the webpage in some way without actually refreshing the page. In this case we are sending some data to a PHP script which can be ran on the server making it possible to make server changes, once again without refreshing the page.
I was searching searching... and was worried also... Found this and implemented it... God Bless You for making a good useful video.... Also please do make some more nice videos on advanced topics...
I downloaded the jquery-1.12.1.min.js file then added the javascript you show in the tutorial to the bottom of this file, then post the source in the html . It works fine, but I'm curious if this is the "correct" or "standard" way to do it? Great tutorial by the way...
9 років тому+1
Great Job! Greetings from Poland! Thank You very much!
Hello, I am not sure how much you check UA-cam but I thought it would be worth a post. First off, thank you for posting this, it is extremely helpful. However I am running into a couple of problems. Namely, my variables like your "postage" are not being recognized by my PHP. Also, I am not entirely sure where the post() and .val() functions came from, as they don't seem to be initialized anywhere. I am assuming they are predetermined by jquery or something, but that would be useful to know. Regardless, my form calls another js function as an action, and originally I had no intentions of adding a submit button, though I would if it will work. When I added it, it wasn't submitting the form... Currently I have-> action=function1() onsubmit=function2() I Need my "result" to be shown in a and not a do you know how I could make that happen? I tried span.variableName instead of #variableName but that didn't seem to work. Thanks!
Very nice. Finally some web-prog. tutorial which actually works. Just one question: if I want to echo on PHP side using echo so that it does not go back to javascript, how can I do it? I mean I just want to do echo normally in php file (so that the echo prints stuff on html page directly.... now it goes back to javasctip data and we do it there)? Also, if the javascript is in php file can I have all this code in php file or the php with if() must be a separate file? Can all this code be in one php file? I mean I do not want PHP to return back to javascript.... as I want to continue building the website on PHP side (like create a div on PHP side using the values got from javascript)?
Hey thanks for your tutorial I'm new at programming and I have a website that is php but I'm using JavaScript for programming my game that I want add to my site is this the way to go about doing it?
No worries, I managed to find the problem, its Zend Frameworks particular syntax. PA
10 років тому
great tut i would like to know how to use php vars like a logged in username session instead of a user input and also a php var for if a user is vieing a friends profile page so i would like to know how to send 2 vars to a parser without refresh it is for a poke application i am making can you do a tut on this please?
You should name your video "jQuery: Post to PHP (AJAX)" if you're going to use jQuery. Some of us are trying to learn how to do it the hard way first...
Great video!! I have a question, if I wanted to use this on a link instead of a button like the video, how could I get it to work? I've tried embedding the $.post function from your video into a click function for the link so far and it works by getting the elementID (a unique id for that anchor tag) and storing it in a variable. This part works. However, getting it to post to my php file thus far has been unsuccessful . It's for a project in college so any help at all would be appreciated!!
ვიღაც გენიოსი ,if you have website, it should work. If you use localhost, it still works if you have internet connection. But if you're completely offline, it won't help you, because it loads jQuery library from web : Google.
Heyder is correct. If you are not using an internet connection then you will need to visit JQuery's website and download the js file for it. Also make sure you changed the JQuery selector id's to match your elements
j-Querer may be because he has a slight speech impediment. You have effectively used your ignorance to make hateful comments. It is better to keep your mouth shut and have people think you're a fool, than to open your mouth and remove all doubt. Shame on you and the 7 likes your comment got for picking on someone. You should stick to making videos on 'Dragon minimap bugs'. Especially since your video description makes no sense at all. The man did a great job and his 9K subscribers attests to that. Hopefully, your potential future employers will see this.
🙏 finally a concise and accurate source of information on this subject. Thank you, you saved my final project 😭
thank you for your code because it helped me in completing my project (Date : 10 oct 2023 , Time : 2:20AM)
This video you took 9 years ago worked for me today thank you
This is just what I have been looking for. It's brill. Clear and concise.
I like the way you can run PHP script WITHOUT having to refresh the home page.
Thank you for sharing the information.
Thank you so much!!!!!!!!! After spending a whole day (and night) trying to figure out what's going wrong, I had the great opportunity to find your video! Again, thanks a lot!
Men I was going crazy fo days with an error of undefined index when I was using ajax. Thanks you have saved my career
AJAX means to use client programming to update or change the webpage in some way without actually refreshing the page. In this case we are sending some data to a PHP script which can be ran on the server making it possible to make server changes, once again without refreshing the page.
I was searching searching... and was worried also... Found this and implemented it... God Bless You for making a good useful video.... Also please do make some more nice videos on advanced topics...
God bless you my brother, this really helped me, have been looking for something like this
Thanks for the TUTs, i've been looking for this a whole week. THanks man... keep up the good work
Yes if you put this onto a button or link so it only happens when a function is ran and not when the page actually loads.
THANKS a lot! I'm able to solve my problem by looking at your video...
Thank you. You solved my problem.
I downloaded the jquery-1.12.1.min.js file then added the javascript you show in the tutorial to the bottom of this file, then post the source in the html . It works fine, but I'm curious if this is the "correct" or "standard" way to do it?
Great tutorial by the way...
Great Job! Greetings from Poland! Thank You very much!
Made my day. Great tutorial, well explained. God bless :)
Hello, I am not sure how much you check UA-cam but I thought it would be worth a post. First off, thank you for posting this, it is extremely helpful. However I am running into a couple of problems. Namely, my variables like your "postage" are not being recognized by my PHP. Also, I am not entirely sure where the post() and .val() functions came from, as they don't seem to be initialized anywhere. I am assuming they are predetermined by jquery or something, but that would be useful to know. Regardless, my form calls another js function as an action, and originally I had no intentions of adding a submit button, though I would if it will work. When I added it, it wasn't submitting the form... Currently I have-> action=function1() onsubmit=function2() I Need my "result" to be shown in a and not a do you know how I could make that happen? I tried span.variableName instead of #variableName but that didn't seem to work. Thanks!
Very nice. Finally some web-prog. tutorial which actually works. Just one question: if I want to echo on PHP side using echo so that it does not go back to javascript, how can I do it? I mean I just want to do echo normally in php file (so that the echo prints stuff on html page directly.... now it goes back to javasctip data and we do it there)? Also, if the javascript is in php file can I have all this code in php file or the php with if() must be a separate file? Can all this code be in one php file? I mean I do not want PHP to return back to javascript.... as I want to continue building the website on PHP side (like create a div on PHP side using the values got from javascript)?
Nice work here. I understood everything quickly.
Hey thanks for your tutorial I'm new at programming and I have a website that is php but I'm using JavaScript for programming my game that I want add to my site is this the way to go about doing it?
So i would recommend using json enode instead of just echoing 1 Or 0
No worries, I managed to find the problem, its Zend Frameworks particular syntax.
PA
great tut i would like to know how to use php vars like a logged in username session instead of a user input and also a php var for if a user is vieing a friends profile page so i would like to know how to send 2 vars to a parser without refresh it is for a poke application i am making can you do a tut on this please?
Thanks for the tutorial, can you do this using only 1 file, that contains both the PHP and jQuery?
You should name your video "jQuery: Post to PHP (AJAX)" if you're going to use jQuery. Some of us are trying to learn how to do it the hard way first...
True true👊 like me.
why its not working in newer versions of php
thank you for saving my 3 hours
very very thanks to post this video it is very use full to me
How do if you want to call a PHP function within a class?
after post every time i click on the link the post data keep showing... how to hide data if u refresh the page
Great video!!
I have a question, if I wanted to use this on a link instead of a button like the video, how could I get it to work? I've tried embedding the $.post function from your video into a click function for the link so far and it works by getting the elementID (a unique id for that anchor tag) and storing it in a variable. This part works. However, getting it to post to my php file thus far has been unsuccessful . It's for a project in college so any help at all would be appreciated!!
I replaced the source to but still not working. can anybody help
can you refresh the page without using getting new data.
can I get js variable to php without submitting?
it works perfectly in my localhost...but I cant make it work with a remote Server
how am I supposed to write the URL?
saved my day ! very helpful thank you
FUCK YES YOU FUCKING LEGEND YOU SAVED MY FUCKING LIFE AND IT WAS WITHIN THE FIRST MINUTE
How can I attache this form to an array?
is it possible to send html arrays to php?
Nice work
but my content which is echoed is not shown or sometimes it just shown and vanishes please help me out
Woooooow. Life Saver! Thank you!
very nice tutorial... thank you for help me out !
very nice.. thanks dude.. 2 thumbs up
where should i find or download jquery.js file which one use in ur video plz advice thank u very much for ur video
you can just get the cdn at the jquery website or download jquery at the jquery website make sure to download it on your website folder
you saved my life :) thank you
i am facing a problem while ($.post) badgateway error 502 any help
thanks for this. it would be useful to post the code on the description using pastebin.
you are a legend dude
thanks for the tutorial... worked great!
Can i Connect this with DB ?
This was really helpful!
gives me error in php code, says undefined index postname, postage
very good, tks
Thanks man, you helped me a lot :D
You r so awesome man that helped me soooooooo much thanx alot :D
what if the script is not inside div tag?
then what should i use instead of $('#result')
You can use something else like and it will work wherever you can't use div.
Thanks! Solved my problem!
Great help, thanks !
This video is helpful, thanks a lot.Please keep it up. (y)
Thanks! :)
i wanna know if the page has reload or not?
no the page does not reload thats where ajax requests are used for
but you sound new you should learn first how to create a post request
Not working, because I haven't file "jquery.js" and from where can I download it?
Just between and tags, paste it:
(It's safest way, because it loads jQuery library from Google.)
Thank you for answer, I do that, but still does not working... Maybe something is wrong in code...
ვიღაც გენიოსი ,if you have website, it should work. If you use localhost, it still works if you have internet connection. But if you're completely offline, it won't help you, because it loads jQuery library from web : Google.
Heyder is correct. If you are not using an internet connection then you will need to visit JQuery's website and download the js file for it. Also make sure you changed the JQuery selector id's to match your elements
THANK YOU BRO!!!!!!!!!! THAAAAAAANKS!!!!!!!!!!!!!!!! :)
nice job my pc crashed after using post method
could you please provide source code
Hi there, very nice tutorial, really helpful, but I get error message Notice: Undefined index: postname. Can you please help me on that.
Plz help me
I am also getting undefined index
Thank you very much.
Excelent.. thank you..
THANKSSSSSSSSS
This one isn't working for me. Maybe you need to clear up exactly where you get the jquery file from. I'll use something else instead now.
Veslav is the source
Ah, thanks.
Not able to execute the script
Thanks for this
Yes
2021?
Nice, thk you...
Nice video
pls send me the code
Really hard to hear you.
nice one
Before you upload this video, please make sure what jquery is.
If you knew it so well, then get the fuck out of here, or else make your own tutorials if you know better.
increase sound
31 seconds for me. Had the jquery in place, just didn't import jquery into the system. NIce!
Thank you!!!
thanks alot man
Is't jQuery tutorial not a JavaScript...
This is great if you want to use JQuery, I just don't.
how would you do it then
No JavaScript must be enabled.
I like your voice
its jQuery Gandalf!
I got it from you
Are you coding on a river?
wtf is "ju'quereeerrr"
j-Querer may be because he has a slight speech impediment. You have effectively used your ignorance to make hateful comments. It is better to keep your mouth shut and have people think you're a fool, than to open your mouth and remove all doubt. Shame on you and the 7 likes your comment got for picking on someone. You should stick to making videos on 'Dragon minimap bugs'. Especially since your video description makes no sense at all. The man did a great job and his 9K subscribers attests to that. Hopefully, your potential future employers will see this.
its JQUERY :'( not vanilla javascript!!! CHEATER
L