What is the prefered way to keep a value inside a text box once it has been entered. In other words you can fill a box on a form, goto another page and later return to it.
Form index.htm
<?
session_start
?>
<html><body>
<form action="process.php" method="post">
<input name="quantity" type="text" />
<input type="submit" />
</form>
</body></html>
Form Process.php
<?
session_start
?>
<html><body>
<?php
$quantity = $_POST['quantity'];
echo "Entered ". $quantity . ".<br />";
?>
</body>
<a href="index.htm">back</a><p>
</html>Form index.htm
<?
session_start
?>
<html><body>
<form action="process.php" method="post">
<input name="quantity" type="text" />
<input type="submit" />
</form>
</body></html>
Form Process.php
<?
session_start
?>
<html><body>
<?php
$quantity = $_POST['quantity'];
echo "Entered ". $quantity . ".<br />";
?>
</body>
<a href="index.htm">back</a><p>
</html>
Many thanks
Form index.htm
<?
session_start
?>
<html><body>
<form action="process.php" method="post">
<input name="quantity" type="text" />
<input type="submit" />
</form>
</body></html>
Form Process.php
<?
session_start
?>
<html><body>
<?php
$quantity = $_POST['quantity'];
echo "Entered ". $quantity . ".<br />";
?>
</body>
<a href="index.htm">back</a><p>
</html>Form index.htm
<?
session_start
?>
<html><body>
<form action="process.php" method="post">
<input name="quantity" type="text" />
<input type="submit" />
</form>
</body></html>
Form Process.php
<?
session_start
?>
<html><body>
<?php
$quantity = $_POST['quantity'];
echo "Entered ". $quantity . ".<br />";
?>
</body>
<a href="index.htm">back</a><p>
</html>
Many thanks