Page 1 of 1

Display Page Breaks in Browser

Posted: Fri May 15, 2009 9:45 am
by jdmfontz
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 />";
?>
 

Re: Display Page Breaks in Browser

Posted: Fri May 15, 2009 10:04 am
by divito

Code: Select all

<form name="newsAdd" method="post" action="page2.php">

Re: Display Page Breaks in Browser

Posted: Fri May 15, 2009 10:11 am
by crazycoders
Not as a solution but more as an explanation, the concept of page exists in the web but it is the same as a document such as a word document or a pdf document. The page concept that you are talking about applies to printing where you have a physical limitation of the information you can display on the media whilst on the web, you have no limit except maybe on the RAM of the user but that is not a fixed physical problem like the size of a sheet of paper.

Re: Display Page Breaks in Browser

Posted: Fri May 15, 2009 1:11 pm
by jdmfontz
Thank you. <form name="newsAdd" method="post" action="page2.php"> works nicely.