Form submit to another page and then review or write to a file <p>I have a script that users can submit certain data, and after a submit they can "review" the output and go back to previous page or submit to it again and there is my proble, the submitted page: How can I submit it again to write it to a file?</p> <p>form.html</p> <pre><code>&lt;form method="post" action="vaihe2.php"&gt; &lt;input name="laskuttaja" type="text" value="Nimi" size="25"&gt; &lt;input name="submit" type="submit" value="Lähetä" /&gt; &lt;/form&gt; </code></pre> <p>vaihe2.php</p> <pre><code>&lt;? $laskuttaja = $_POST['laskuttaja']; $data = '&lt;B&gt;'.$laskuttaja.'&lt;/b&gt;'; echo $data; ?&gt; </code></pre> <p>So how can I post that $data to next page(vaihe3.php) with submit and let the script write it to a file. I know how php write file works but the post to third page is not working.</p>