Тёмный

Form Submit Using Ajax - WordPress Form Ajax 

Joshua Herbison
Подписаться 11 тыс.
Просмотров 19 тыс.
50% 1

#wordpress #wordpressplugin #wordpressajax
In this video I show you how to create a stand alone plugin that gives you a contact form with an Ajax submit function.
Download the code: idp.bz/form-ajax
jQuery Hosted Library by Google: developers.goo...
Company Website: www.ideapro.com
SEND BUSINESS CORRESPONDENCE TO:
Idea Pro LLC or Joshua Herbison
2901 E Greenway Rd. #54171
Phoenix, AZ 85032
In my tutorials, you will see me upload files to the server. To upload, I use Sublime Text 3 with SFTP by WBond. idp.bz/sftp
WordPress Codex: idp.bz/wordpres...

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 99   
@michaelmcdonald3275
@michaelmcdonald3275 2 года назад
This is one of the most contextually complete and clearly articulated tutorials I have ever come across. I am moving from Laravel to Wordpress and wanted an idea of the schema in contrast to the Laravel MVC and this tutorial has enabled me to clearly understand the WP layout of things.
@jherbison
@jherbison 2 года назад
Awesome. Thank you for watching and commenting. So kind words!
@hmjahir77
@hmjahir77 3 дня назад
its 2024, i have been looking for a tutorial for custom form submission in wordpress. Everyone was writing the form directly in that a page which i did not understand well. But this approach of developing a plugin is really really helpful. Thanks man. it helped me a lot.
@jherbison
@jherbison 12 часов назад
Awesome. So glad it helped.
@jherbison
@jherbison 4 года назад
I apologize if the audio is a little annoying. I had an issue with the recorder and luckily had multiple things recording audio. This was one of the longest video I think I have created.
@ahmedali-hy9ew
@ahmedali-hy9ew 2 года назад
Hi Joshua. Thanks for the tutorial i really liked it but the download link is not working , I can't download the source code please help me in that.
@davidwells34
@davidwells34 Месяц назад
Great videos, Josh, bravo! You have a great teaching style, and I learned a bunch really quickly from your vid on creating page templates within a plugin. I am currently wrangling my first admin-ajax use case for our business site, which is allowing the user to update a field value in a large table without doing a form POST, b/c the whole thing is part of a shortcode...
@samehzaky
@samehzaky 2 года назад
unfortunately I watched your video after around 2 years of its publishing, better late than never, I am using your tutorial for my own business. no thing is new great as usual
@codefaculty
@codefaculty 3 года назад
I have seen all your tutorials it helps me a lot, Thank you and keep doing this awesome work.
@jherbison
@jherbison 3 года назад
Thank you. Glad you like the videos.
@EyesReye
@EyesReye 2 года назад
I just finished my workweek but I'll definitely try this out! Hopefully it works with my custom form. Just need to get access to all my data in my PHP file so I can start generating a PDF file with that data and email it back to the customer and shop owner. The form is completely custom since it does a bunch of calculations when you select / click on certain things.
@rahlaganemathebe9232
@rahlaganemathebe9232 2 года назад
That was very useful... I needed this. Thank you! As requested, I'm using your videos to advance my skills and develop my own plugins
@jherbison
@jherbison 2 года назад
That’s awesome!!!! Thank you for watching and commenting.
@jespersvenningsen2158
@jespersvenningsen2158 Год назад
Just started with programming - last programming skill - Pascal for many years ago :-)
@tomchambers9787
@tomchambers9787 3 года назад
That was fantastic... great voice and cool, calm and collected. I will be looking at all your videos...
@jherbison
@jherbison 2 года назад
Awesome.. Thank you. Sorry for the delay in replying.. Comments go away from me, so I am trying to catch up on them.
@cholo2605
@cholo2605 3 месяца назад
Thanks a lot i really need this tutorial for my new job !!!!!!
@RT-eb6vo
@RT-eb6vo 3 года назад
Just such awesome stuff Josh. The perfect starter for what I am hoping to do. Thanks for much.
@jherbison
@jherbison 3 года назад
Awesome.. Thank you for watching and commenting.
@SpiritMeaning
@SpiritMeaning 2 года назад
Amazing video. I got it right.. Sort of Achievement... Thanks a ton, once again Joshua
@jherbison
@jherbison 2 года назад
Thank you for watching and commenting.
@nailsaggitarius4212
@nailsaggitarius4212 2 года назад
Thank you, Great explanator! I need ajax for my business site. I need to load additional lists of information to web page
@vijayrana8133
@vijayrana8133 3 года назад
Timestamps would be amazing for long videos. Anyway great as always
@jherbison
@jherbison 2 года назад
Thank you.. Started putting them on the newer videos for sure.. I need to go back and do it on the older videos.
@rwobben489
@rwobben489 7 месяцев назад
Found this one just yet but I love it. Suppose I wanted also a check if the name and message have a length longer then 2 . It is easy to change that I can show 2 error message when that is not the case ?
@theman7050
@theman7050 3 года назад
I can feel u on that wp_foot or wp_footer doubt. 😅 the existence of wp_head vs header carries over the doubt in footer too
@jherbison
@jherbison 3 года назад
Oh yeah! Thanks for watching and commenting.
@davidwells34
@davidwells34 Месяц назад
Hi Josh, just curious, what are pro's & con's of writing your own AJAX processor versus using WP's admin-ajax.php, which I see most people recommending?
@fysher777
@fysher777 4 года назад
Another great tutorial, just what I have been looking for, Thanks
@jherbison
@jherbison 4 года назад
Perfect! I hope you find it helpful. Thank you for watching and commenting.
@Dan-ez4xv
@Dan-ez4xv Год назад
Thank you for your video, it helped me a lot.
@jherbison
@jherbison 11 месяцев назад
Awesome! So glad to hear that. Thank you for watching and commenting. If you found this helpful, please consider subscribing if you aren’t already and sharing with others who might benefit. Your support helps me create better videos in the future. 🙏
@balborando
@balborando Год назад
I have a question. Would it be easier to create a template and use PHP and ajax there, instead of creating a shortcode?
@jherbison
@jherbison Год назад
It could be easier for you. If you have created a custom theme, but typically people are using a prebuilt theme so putting it in a plugin or shortcode is easier.
@yayak.9726
@yayak.9726 3 года назад
thanks, great video.. how possible to include multiple file input to upload multiple files to custom post type metabox! thanks
@jherbison
@jherbison 3 года назад
Can you give me an example of what you are trying to do? Thanks for watching and commenting.
@yayak.9726
@yayak.9726 3 года назад
@@jherbison i have a frontend form includes two file input fields each of them can upload multiple files, so when submit the form the data and files urls will be saved in CPT, CPT has some metaboxes . Two metaboxes for files uploads Each one related to each file input field, and each of them display the uploaded files url.
@themeatelier
@themeatelier Год назад
Is there any way to use it without calling wp-load.php file? It means can I take index.php code inside my WordPress function/file? It's that can be done can you give me a suggestion how may I do that?
@Magistrado1914
@Magistrado1914 3 года назад
Excellent course 18/06/2021
@jherbison
@jherbison 3 года назад
Thank you. Glad you enjoyed the video..Thank you for watching and commenting.
@nitishsharma7698
@nitishsharma7698 3 года назад
Very beneficial video. Sunscribed your channel. Very informative.
@jherbison
@jherbison 3 года назад
Awesome... Thank you for subscribing, watch and commenting.
@xtiantoth
@xtiantoth 3 года назад
Thank you for the video, very nice. One question: is there a reason why you are not using admin-ajax.php to handle the ajax request?
@jherbison
@jherbison 3 года назад
You can use the admin-ajax, I just don't like relying on WordPress.. Thank you for watching and commenting..
@masivuyecokile3968
@masivuyecokile3968 11 месяцев назад
Hey Josh, Unable to download the file it show XML with access denied.
@maximusDMR
@maximusDMR Год назад
Hi Joshua, Finally after many hours of debugging I have get my form to work! So, thanks so much for your hard work at it really helped in my project! I'm building my first coded from scratch WordPress site so challenges all the time :) I've jumped to the deep water, but I do not regret that. Total freedom of coating the awesome things. One thing I have noticed is that upon the form submission the submission div, as well as the form information, are not disappearing. Is there any easy way to refresh this form without refreshing the page, so the form is clear and the user won't send it again? Once again thanks so much for helping us...
@tomchambers9787
@tomchambers9787 3 года назад
Love all your presentations.... question.. I notice your form does not go to a new url on submit.. and I like that and mine does the same.. but when I remotely press the button like maybe have jquery or Js press the submit button or actually submit the form then it does go to a new location.. Is there anything i could look for to stop that.. i tried return false; and other things but when remote submit will not stay in place.... but pressing the submit by hand it stays right in place... Thanks.
@jherbison
@jherbison 2 года назад
Thank you for watching and commenting.. Using javascript and jquery, you could do a form submit without changing the page. Trying to catch up on comments.
@LensAndSoundStories
@LensAndSoundStories 2 года назад
Hi there code download link is not working..:(
@jherbison
@jherbison 2 года назад
If you copy and paste the link, it works... Clicking it from the RU-vid page for some reason doesn't work.. Not sure what that is all about.
@hamidrajabikojidi9036
@hamidrajabikojidi9036 3 года назад
Hi, Thanks. I work in a company and I really need you to make a tut about writing a sign up and login plugin with ajax. Thanks a lot
@jherbison
@jherbison 3 года назад
Login and signup connecting to WordPress or just a stand alone php page? Thank you for watching and commenting.
@adrian20065
@adrian20065 4 года назад
Great tutorial. Thanks.
@jherbison
@jherbison 4 года назад
Thank you.
@annietrinh1452
@annietrinh1452 3 года назад
Can you make live search for products with images result? I’m searching for many days but no one teach it
@jherbison
@jherbison 2 года назад
I hope you found a solution for this. I have it on the list of videos to make. Thank you for watching and commenting
@logicalman75
@logicalman75 3 года назад
Thank you for making this video! It's was exactly what I was looking for. I followed along with your tutorial and everything is working except the email output shows the break tags with no line breaks. I must have missed something and have gone over everything a few times and can't find it. Just wondering if you had a suggestion of the top of your head?
@jherbison
@jherbison 2 года назад
Sorry I missed your comment. Hope you found the solution. If not you can email me at josh@ideapro.com
@user47263
@user47263 4 года назад
Hi Joshua you have great videos! If you can do a Contact form with file upload that would be awesome!
@jherbison
@jherbison 4 года назад
That's a great idea! I will add it to the list of videos that I want to make. Thank you for watching and commenting.
@AP-ei4jt
@AP-ei4jt 3 года назад
Thanks for the wonderful tutorial. I downloaded your complete plugin code. Somehow it's not working on my local machine. Any suggestions on how to troubleshoot this?
@jherbison
@jherbison 3 года назад
What part specifically isn't working? Email? Email will typically not work on a local machine cause you don't have an email server setup. You can do it on a local machine using an SMTP plugin so that the email goes out through a web based SMTP server.
@novakjetil
@novakjetil 4 года назад
Great content - i needed this! 👌
@jherbison
@jherbison 4 года назад
Awesome. Thank you for watching and commenting. Please share it with anyone that you think would like to see it. I want to make more videos and just need to get the number of views up.
@jherbison
@jherbison 4 года назад
Hopefully RU-vid will generate the HD version of the video soon! Seems to take longer and longer all the time. You can't even see the code in the quality that is available right now.
@greggpet1
@greggpet1 3 года назад
Great video. Could you check the link to the code? It doesn't seem to access anything. Thank you
@jherbison
@jherbison 3 года назад
The link in the description works. It will download a zip file with the source code in it.
@KeepSmiling-143
@KeepSmiling-143 3 года назад
Very very thanks for this.. I am searching this type of tutorial so please give me idea.. i want to use prompt box which check the submit number and random number generate both are same then how we can redirect after the got success response to another page..
@jherbison
@jherbison 2 года назад
I hope you found a solution for this. If not let me know. Thank you for watching and commenting. If you haven't already, please check out my latest video: A Day In the life of a software engineer. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Z8GluDQ2U-E.html
@bazan1686
@bazan1686 3 года назад
How did you acess the file directly and editing it online? And its work on window ?
@jherbison
@jherbison 3 года назад
SFTP through sublime package. sorry for the delayed response.. Thank you for watching and commenting.
@anirbanrubel
@anirbanrubel 3 года назад
awesome video.. your code link is not opening..can you check it please? it will help while practicing
@jherbison
@jherbison 3 года назад
Yes, it is an issue with the short url.. I will fix it.
@jherbison
@jherbison 3 года назад
It seems like the link is working now..
@ahmedali-hy9ew
@ahmedali-hy9ew 2 года назад
@@jherbison no unfortunately it is not working
@jherbison
@jherbison 2 года назад
@@ahmedali-hy9ew weird. Ok, I will check it.
@ahmedali-hy9ew
@ahmedali-hy9ew 2 года назад
@@jherbison Hi Joshua is there any updates about the link?
@ttv7128
@ttv7128 3 года назад
Thank you!
@jherbison
@jherbison 3 года назад
Thank you for watching and commenting.
@saxena_aks
@saxena_aks 3 года назад
Why aren't you using admin ajax.php?🙄
@jherbison
@jherbison 2 года назад
I sometimes do. It really all depends. Thank you for watching and commencing. Trying to catch up on comments that I missed
@hamzaibrahimi194
@hamzaibrahimi194 4 года назад
Hey Josh thanks for the tutorials. I've used ur tutorials to make my contact forms. I'm working on an online learning platform. I made a plugin to have my forms submissions, and an admin site to add and delete from database. For my form action attribute I want to redirect my page to my php files plugin folder. I decided plugin_urI but not working. Can I solve this with any of ur tutorials? if yes can you post the link please. P.S: your videos are great can't be any happier. Thanks Alot!!
@jherbison
@jherbison 4 года назад
Are you using plugin_dir_path() or plugin_dir_url(). Also, the attribute inside that function should be either __FILE__ or __DIR__. Those are built in PHP constants for the current working directory or current working file. I would need to see the code to best advise you. The only video that I think would help is ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gm5E63tYvdI.html
@hamzaibrahimi194
@hamzaibrahimi194 4 года назад
@@jherbison Thanks that video helped.
@jherbison
@jherbison 4 года назад
Awesome.
@pavasdave3163
@pavasdave3163 2 года назад
Learning for self, kindly help me with the same
@jherbison
@jherbison 2 года назад
Thank you.
@Owen-
@Owen- 3 года назад
The download code link dosnt work
@jherbison
@jherbison 3 года назад
Ok, I will check the link and see what is wrong! Thank you for watching and commenting.
@md.hasanmahmud7883
@md.hasanmahmud7883 4 года назад
I always appreciate your video, but this one !!! It's not the way to use Ajax
@jherbison
@jherbison 4 года назад
Why would you say that?
Далее
🛑 ты за кого?
00:11
Просмотров 39 тыс.
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Просмотров 2,5 млн
Friends
00:32
Просмотров 865 тыс.
Cristiano Ronaldo Surpassed Me! #shorts
00:17
Просмотров 16 млн
How to do AJAX in WordPress correctly (2023)
34:58
Просмотров 5 тыс.
AJAX in WordPress using admin-ajax.php
9:49
Просмотров 39 тыс.
How to Use AJAX in Wordpress (admin-ajax.php)
11:42
Просмотров 12 тыс.
How To Use AJAX In WordPress
15:08
Просмотров 45 тыс.
🛑 ты за кого?
00:11
Просмотров 39 тыс.