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

Поделиться
HTML-код
  • Опубликовано: 18 ноя 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,..

  • @SanjeetKumar-k1j
    @SanjeetKumar-k1j Год назад +1

    Thanks for very helpful video 🎉

  • @omarmagdi2649
    @omarmagdi2649 11 месяцев назад +1

    Great video! Keep going bro 👏

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

    Great tutorial! very helpful.

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

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

  • @DigneDiconfiance
    @DigneDiconfiance 6 месяцев назад +1

    Thanks it have worked

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

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

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

    Thanks bro needed this

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

  • @tomatomayo-rs1ui
    @tomatomayo-rs1ui Год назад +1

    thanks it works

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