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 in PHP by Kithuzzz
• 4,480 points
27 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,740 points
371 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 in PHP by Kichu
• 19,040 points
23 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 in PHP by Kithuzzz
• 4,480 points
6 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 in PHP by Kithuzzz
• 4,480 points
15 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 in PHP by Kithuzzz
• 4,480 points
19 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 in PHP by Kithuzzz
• 4,480 points
14 views
0 votes
0 answers

301 Redirect to a 302 Redirect (SEO implications)

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

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

URL redirection in php for Opera Mini browser

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

May 27 in PHP by Kichu
• 19,040 points
38 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 in PHP by Kichu
• 19,040 points
187 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 in PHP by narikkadan
• 11,280 points
16 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP