Dispensing Text In PHP
<p>In my php file called "account.php" I have</p>

<pre><code>&lt;?php 
// First we execute our common code to connection to the database and start the session 
require("common.php"); 
// At the top of the page we check to see whether the user is logged in or not 
if(empty($_SESSION['user'])) 
{ 
    // If they are not, we redirect them to the login page. 
    header("Location: login.php"); 
    // Remember that this die statement is absolutely critical.  Without it, 
    // people can view your members-only content without logging in. 
    die("Redirecting to login.php"); 
}          
?&gt; 
&lt;html&gt;
&lt;body&gt;
    &lt;link rel="icon" type="image/gif" href="favicon.gif" /&gt;
    &lt;?php include("header.php"); ?&gt;
    &lt;div id="main-box"&gt;
        &lt;ul&gt;
            &lt;li class="buttons"&gt;
&lt;?php 
//TEXT BOX WITH A LINE FROM **TEXT.txt** SHOULD APPEAR HERE AFTER USER CLICKS BUTTONS 
?&gt;
                &lt;input type="button" name="account" value="Get Your Account" onclick="#" /&gt;
            &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I want it so when the user clicks the button, a text box appears and displays ONE line from the text file and when they view it, it deletes it from the text file. 
   <strong>text.txt</strong></p>

<pre><code>Eddie so after the user clicks the button it displays this line to them and then deletes it after so that the next line would then become the first line. 
Apples
Hello
People
</code></pre>

<p>If you don't understand my question then please let me know and I will try to explain further. Thank you. :)</p>
