Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6871813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:51:01+00:00 2026-05-27T03:51:01+00:00

I need to consider something in the future after I finish my application. What

  • 0

I need to consider something in the future after I finish my application. What is going to happen is that a teacher will need to first login (login page is page 1), after login the page will go straight to a menu where the teacher selects a hyperlink link to open up a page (hyperlink menu is page 2), On third page I want a message displaying welcome to the teacher who has accessed the page (page 3 is welcome page).

Is there a way to get the teacher username from page 1 and displaying it on page 3 is what I am asking?

Below is coding and example:

Page 1: InputTest.php

<body>
    <form action="InputTest2.php" method="post">
    <p>Please enter your name</p><p><input type="text" name="user" /></p> 
    <p><input type="submit" value="Send" /></p> 
    </form>
    <!-- The above allows a name to be entered and submitted to "InputTest2" by clicking on send button -->
</body> 

Page 2: InputTest2.php

<body>
    <p><a href="InputTest3.php">Welcome</a></p> 
    <p><a href="...">...</a></p> 
    <p><a href="...">...</a></p> 
</body>

Page 3: InputTest3.php

<body>
    <?php print "Welcome  <b>".$_POST['user']."</b><br/>\n"; ?>
</body>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:51:01+00:00Added an answer on May 27, 2026 at 3:51 am

    in your InputTest2.php
    add the following code in the start of the page

    session_start(); 
    $_SESSION['usernameLogged'] = $_POST['user'];
    

    and then you can print it like this
    also you should start a session

    <?php
    session_start(); 
    print "Welcome  <b>".$_SESSION['usernameLogged']."</b><br/>\n";
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider this page @ http://www.bloodbone.ws/screwed.html I need to be able to have the a.grow
I know about ELMAH, but that only logs unhandled errors. I need something that
I'm building a web application that will allow team collaboration. That is, a user
Consider a webpage, located at http://www.example.com/mypage.html Unfortunately, someone wrongly advertises that the page's address
We're designing a database in which I need to consider some FK(foreign key) constraints.
Over the next few months, we need to consider the best technology/technique for periodically
Consider a situation in which you need to call successive routines and stop as
Need to insert selected text on the page into textarea. There must be some
need to add a 2nd css stylesheet to a page. do i add a
I have a question regarding implementation of smart-search features. For example, consider something like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.