Forum Moderators: coopster
Now to display the username simply use:
Echo "Hello $username";
If you are not using session (which I doubt)
You may get the username via the original form
And create a session out of the username POST
$username=$_POST[‘username’];
$_SESSION[‘username’]=$username;
$username=$_SESSION['username'
That will do for the first page (The page receiving input from the form)
Then for any other pages again use
<?php
session_start();
$username=$_SESSION['username'];
session_start();
$_SESSION['info'] = $_POST['info'];
Doing this will enable you to access the information from the post on any page of your site as long as the session is started and the user doesn't exit out of their browser.
The second page will therefore look something like this:
session_start();
$info = $_SESSION['info'];
echo "<a href=$info>$info</a>"; //here depends on what you want to do, obviously
Hope this explains how you can achieve this.
eelix