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

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 62

  • @giulia7253
    @giulia7253 Місяць тому +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

  • @AhmadRaza-qv5mn
    @AhmadRaza-qv5mn 3 роки тому +2

    love u its working keep going

  • @adygadgets
    @adygadgets 2 роки тому

    Thank you so much Sharma

  • @infoafkar3029
    @infoafkar3029 3 роки тому +1

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

  • @marcosalexandreonikanastri2963

    very tankis, helpi mi a loti :) ass gabizika

  • @preciousgracebolonias2555
    @preciousgracebolonias2555 Рік тому

    great thanks for tutorial

  • @NoorMohamed-hb7ce
    @NoorMohamed-hb7ce 3 роки тому +1

    Very good bro

  • @christianforte5951
    @christianforte5951 Рік тому

    GRACIAS TE AMO

  • @kanchanjadhav8055
    @kanchanjadhav8055 2 роки тому +1

    Thank you sir 🥰

  • @lalphoolnilaphool69
    @lalphoolnilaphool69 Рік тому

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

  • @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?

  • @telhernandez2347
    @telhernandez2347 3 роки тому +2

    Thank you so muchhh❤

  • @officialyoris1942
    @officialyoris1942 2 роки тому

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

    • @SharmaCoder
      @SharmaCoder  2 роки тому

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

  • @kalegety
    @kalegety 10 місяців тому +1

    thank you

  • @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.

  • @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.

  • @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..

  • @codeek0
    @codeek0 Рік тому

    This was awesome

  • @lengleng5594
    @lengleng5594 3 роки тому

    Thank you so much !

  • @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..

  • @soubiluv98
    @soubiluv98 3 роки тому

    thanks!

  • @mohamednassim6709
    @mohamednassim6709 3 роки тому +1

    thanks

  • @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?