Skip navigation

Mark favorites on page load

Mark favorites on page load: Ajax with PHP
Mark favorites on page load: Ajax with PHP

Ajax requests display a heart to indicate a favorite, but when the page is reloaded they are not remembered. Learn to add PHP code which will display a red heart when a blog post’s ID is present in the session storage when the page is first loaded.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 37m
Show More Show Less
Skills covered in this course
Developer Web Web Development Ajax PHP

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now