PHP form - Registration Successful Message on New Page

0 votes

After each entry has been verified, the registration form I built sends some information to the database and brings users to the login page.

However, I would like to see something like this on the login page: Registration Was Successful. Please Log In.

if (!validated() {
    // post error messages

} else {
    echo '
       <div class="container">
        <div class="page-header">
            <h3>Registration Complete</h3>
        </div>
       </div>';

    header( 'Location: ../login.php' );
}

Login file :

Header - Navbar

<div class="container">
   <div class="page-header">
       <h3>Login To Members Corner</h3>
   </div>

   <form>
       // login form
   </form>

Footer

Can someone please help me with this?

Jul 24, 2022 in PHP by Kithuzzz
• 38,000 points
2,428 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In PHP

0 votes
1 answer

How can we track Google Analytics on a redirection page with PHP?

Hello @kartik, Since the page that is sending ...READ MORE

answered Apr 29, 2020 in PHP by Niroj
• 82,840 points
1,183 views
0 votes
0 answers

Getting PHP registration form to connect with MYSQL

I'm building a test site and my ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,040 points
500 views
0 votes
0 answers

Send email with PHP from html form on submit with the same script

When a user has finished filling out ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
1,147 views
0 votes
0 answers

Form submit with AJAX passing form data to PHP without page refresh

Can anyone tell me why this bit ...READ MORE

Jul 29, 2022 in PHP by Kithuzzz
• 38,000 points
1,848 views
0 votes
0 answers

How to GET data from API and show it on PHP page?

I want to use some data from ...READ MORE

Jul 31, 2022 in PHP by Kithuzzz
• 38,000 points
12,035 views
0 votes
0 answers

PHP using extract() to pass array values as variables and display it on a page

In order to include a specific file ...READ MORE

Aug 6, 2022 in PHP by Kithuzzz
• 38,000 points
1,316 views
0 votes
0 answers

301 Redirect to a 302 Redirect (SEO implications)

using thousands of redirects i rebuilt my ...READ MORE

Mar 6, 2022 in Digital Marketing by Kichu
• 19,040 points
380 views
0 votes
0 answers

URL redirection in php for Opera Mini browser

I want to redirect URLs clicked in ...READ MORE

May 27, 2022 in PHP by Kichu
• 19,040 points
369 views
0 votes
0 answers

PHP header(Location: ...): Force URL change in address bar

I have a new webpage but the ...READ MORE

Jun 1, 2022 in PHP by Kichu
• 19,040 points
3,422 views
0 votes
0 answers

Using sessions & session variables in a PHP Login Script

I have created a login and register ...READ MORE

Jun 17, 2022 in PHP by narikkadan
• 63,600 points
621 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP