How to show success message on form submit using sweet alert in php

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

КОМЕНТАРІ • 27

  • @RealCodingHero
    @RealCodingHero  Рік тому +4

    Connection.php
    --------------------*--------------------------*----------------------------------*---------------------------*---------------------------*--------------------------*--------------------------------*-------------
    register.php
    body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    }
    * {
    box-sizing: border-box;
    }
    /* Add padding to containers */
    .container {
    padding: 16px;
    background-color: white;
    }
    /* Full-width input fields */
    input[type=email], input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    display: inline-block;
    border: none;
    background: #f1f1f1;
    }
    input[type=email]:focus, input[type=password]:focus {
    background-color: #ddd;
    outline: none;
    }
    /* Overwrite default styles of hr */
    hr {
    border: 1px solid #f1f1f1;
    margin-bottom: 25px;
    }
    /* Set a style for the submit button */
    .registerbtn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
    }
    .registerbtn:hover {
    opacity: 1;
    }
    /* Add a blue text color to links */
    a {
    color: dodgerblue;
    }
    /* Set a grey background color and center the text of the "sign in" section */
    .signin {
    background-color: #f1f1f1;
    text-align: center;
    }

    Register
    Please fill in this form to create an account.

    Email

    Password


    Register

  • @gunadAgp
    @gunadAgp 8 місяців тому +1

    Mantap good jobs,..

  • @omarmagdi2649
    @omarmagdi2649 11 місяців тому +1

    Great video! Keep going bro 👏

  • @SanjeetKumar-k1j
    @SanjeetKumar-k1j Рік тому +1

    Thanks for very helpful video 🎉

  • @DigneDiconfiance
    @DigneDiconfiance 6 місяців тому +1

    Thanks it have worked

  • @chestertech27
    @chestertech27 Рік тому +1

    Great tutorial! very helpful.

  • @sungamshrestha7084
    @sungamshrestha7084 Рік тому +1

    Thanks bro needed this

  • @tomatomayo-rs1ui
    @tomatomayo-rs1ui Рік тому +1

    thanks it works

  • @tharudilneth9079
    @tharudilneth9079 Рік тому +1

  • @Darkfact_
    @Darkfact_ 11 місяців тому +1

    My connection is right i write same code all work but alert pop not show submit data

    • @RealCodingHero
      @RealCodingHero  11 місяців тому

      Did you import sweetalert in head section

  • @franzmclay
    @franzmclay Рік тому +1

    thanks for this! its working for me but how to redirect to Login Page after clicking that Ok ??

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

      Header("Location:test.php");
      Here test.php is where you want user to redirect and this way you can redirect user to another Page.

  • @OnlyAm00
    @OnlyAm00 Рік тому +1

    when refresh page the alert auto triggerd it how to fix not to tiggerd it bro just only button can triggerd it

  • @bhuvanayerigeri1774
    @bhuvanayerigeri1774 Рік тому +1

    It isn't working

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

    I give you PHP you can add success message in php

  • @animeshorts2510
    @animeshorts2510 Рік тому +1

    I give you PHP you can add success message in php