How can I set the value of a textbox through PHP?
<p>So I have this empty textboxes in a registrationg page. The user enters some data, hits continue and then there's a confirmation page. If the data is incorrect, the user hits go back to go correct whatever was wrong. However, when he goes back, all the textboxes are empty. So the first thing that comes to my mind is to store the user data in a Session (I have a User class that holds all this data so I store the class in the session). When the user goes back I am able to retrieve the data.</p>

<p>I do something like this:</p>

<pre><code>if($_SESSION['UserInfo'])
{
    $user = $_SESSION['UserInfo'];

    $firstName = $user-&gt;FirstName;
    $lastName = $user-&gt;LastName;
}
</code></pre>

<p>How would I put these variables in a textbox?</p>
