Display Page Breaks in Browser
Posted: Fri May 15, 2009 9:45 am
I have a form and would like to be able to display the variables in a second page on Submit rather than displaying then at bottom of screen on same page. Have tried css stylesheets but those does not seem to work in the browser. I heard that there is no such thing as page breaks in html. Wondering if someone has been able to code this with php.
Code: Select all
<P> This is page 1: </p>
<form name="newsAdd" method="post" action="">
<label>Title: <input type="text" name="title"></label><br />
<label>Article:<br /><textarea name="article" cols="100" rows="20"></textarea></label><br />
<label>Publish: <input type="checkbox" name="publish"></label><br />
<input type="submit" value="Submit"><input type="reset" value="Reset">
</form>
Code: Select all
<?php
//This is page 2:
//Define variables
$title = $_REQUEST["title"];
$article = $_REQUEST["article"];
$publish = $_REQUEST["publish"];
//Display variables
echo "This is page 2: " . <br />;
echo "Title: " . $title . "<br />";
echo "Article: " . $article . "<br />";
?>