How to show Success Message/ Flash message in PHP | Show Session message in next page

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 62

  • @giulia7253
    @giulia7253 2 месяца назад +1

    meu deusssssss!!!!!!! eu TE AMO!!!!! você salvou minha vida lol

  • @saraha.3267
    @saraha.3267 3 года назад +2

    Super easy to follow, I'm sure it'll do the trick. Thanks 👍

  • @adinisaac
    @adinisaac 3 года назад +2

    Good job Sharma, useful and pretty well expleined. Thank you so much!

    • @SharmaCoder
      @SharmaCoder  3 года назад

      Thank you for your kind words.

  • @rezaeiabazar5324
    @rezaeiabazar5324 Год назад +1

    very very good

  • @marcosalexandreonikanastri2963

    very tankis, helpi mi a loti :) ass gabizika

  • @AhmadRaza-qv5mn
    @AhmadRaza-qv5mn 3 года назад +2

    love u its working keep going

  • @preciousgracebolonias2555
    @preciousgracebolonias2555 Год назад

    great thanks for tutorial

  • @NoorMohamed-hb7ce
    @NoorMohamed-hb7ce 3 года назад +1

    Very good bro

  • @adygadgets
    @adygadgets 2 года назад

    Thank you so much Sharma

  • @photoinshot1355
    @photoinshot1355 3 года назад +1

    Thanks Sharma, great tutorial very well explained and easy to follow. How would you unset the session after say 10 seconds rather than when the page is refreshed?

    • @SharmaCoder
      @SharmaCoder  3 года назад

      You mean you want the message to disappear on it's own after 10 seconds??

    • @photoinshot1355
      @photoinshot1355 3 года назад +1

      @@SharmaCoder Yes that's correct if it is possible or should I use jQuery?

    • @SharmaCoder
      @SharmaCoder  3 года назад

      You can go ahead with alertify js. You can easily customise the position it should appear, no of seconds it shud wait and disappear on it's own..

  • @kanchanjadhav8055
    @kanchanjadhav8055 2 года назад +1

    Thank you sir 🥰

  • @telhernandez2347
    @telhernandez2347 3 года назад +2

    Thank you so muchhh❤

  • @codeek0
    @codeek0 Год назад

    This was awesome

  • @christianforte5951
    @christianforte5951 Год назад

    GRACIAS TE AMO

  • @kalegety
    @kalegety 10 месяцев назад +1

    thank you

  • @infoafkar3029
    @infoafkar3029 3 года назад +1

    what about the form action what did you write in it?

  • @lalphoolnilaphool69
    @lalphoolnilaphool69 Год назад

    Sir ..in register page there is some error in php curly brace...how to solve it?

  • @lengleng5594
    @lengleng5594 3 года назад

    Thank you so much !

  • @annbonador
    @annbonador 3 года назад

    how about showing the error message with alert-warning is it possible to use if else statements for success and error session message

    • @SharmaCoder
      @SharmaCoder  3 года назад +1

      Yea.. you can use if else and display the message according to the condition..

    • @annbonador
      @annbonador 3 года назад

      @@SharmaCoder thanks

    • @pieash9
      @pieash9 2 года назад

      @@SharmaCoder where should I use if/else to show the error message?

  • @mimi-ty2uk
    @mimi-ty2uk 2 года назад

    i tried adding the bootsrap css and js cdn link and the alert worked but the styling of my page got messed up. what could be the problem?

    • @SharmaCoder
      @SharmaCoder  2 года назад

      You might have misplaced the div alignment.. just check all the divs have closing divs aligned properly.

  • @driilisertugul8320
    @driilisertugul8320 3 года назад

    Sir Sweet alert message show wrong page....e.g when i delete record. Record deleted but no message show when i click edit button alert show record deleted...how to solve it..

  • @mohamednassim6709
    @mohamednassim6709 3 года назад +1

    thanks

  • @soubiluv98
    @soubiluv98 3 года назад

    thanks!

  • @souravchowdhury9491
    @souravchowdhury9491 3 года назад +1

    it's not working in my code, do I need to include any plugin/extension to run the bootstrap???

    • @SharmaCoder
      @SharmaCoder  3 года назад +2

      Yes.. Just add the bootstrap css and js cdn link available on getbootstrap.com

    • @souravchowdhury9491
      @souravchowdhury9491 3 года назад

      Can you please provide me the link to download those???

    • @SharmaCoder
      @SharmaCoder  3 года назад +1

      @@souravchowdhury9491 you can copy the cdn for css and js from here :
      getbootstrap.com/docs/5.0/getting-started/introduction/

    • @souravchowdhury9491
      @souravchowdhury9491 3 года назад +1

      @@SharmaCoder thanks 😊

    • @SharmaCoder
      @SharmaCoder  3 года назад +1

      thank you.. do subscribe and keep supporting.
      Thank you.

  • @officialyoris1942
    @officialyoris1942 3 года назад

    Only work in mvc model ?
    Can work in internal php ?

    • @SharmaCoder
      @SharmaCoder  3 года назад

      It works in core php as well as with MVC model.

  • @ThePissucase
    @ThePissucase 3 года назад

    What's included in header.php?

    • @SharmaCoder
      @SharmaCoder  3 года назад

      Just the HTML structure till the open body tag. (Given below)

      Sharma Coder

  • @milasspace
    @milasspace 2 года назад

    It says I have an undefined array key.

    • @SharmaCoder
      @SharmaCoder  2 года назад

      Just check if you have given the same session name while setting the session and fetching it.

  • @abrar8133
    @abrar8133 3 года назад

    it isn't working

    • @SharmaCoder
      @SharmaCoder  3 года назад

      Did you give session_start() on top of the page?