Here's an example to get you started - created 2 files as below, 1.html and

The important bit is value="<?php echo $_POST['username'];?>


FILE : 1.html

<form action="2.php" method="post">
<input type="text" name="username" size="40" maxlength="256">
<input type="submit" value="submit">



FILE : 2.php

<form action="2.php" method="post">
Name : <input type="text" name="username" value="<?php echo
$_POST['username'];?>"size="40" maxlength="256">
Address : <input type="text" name="test" size="40" maxlength="256">
<input type="submit" value="submit">



-----Original Message-----
From: news [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 11:15
Subject: [PHP-DB] Preserving form field values between pages/tags


I'm building a form page that has 3 tags for different types of fields (i.e.
Personal details, location details, other).  I want to preserve the values
of the filled in fields as the user moves from section/tag to section/tag.
I've tried making each tag a separate page and use the URL to pass values,
as well as put it all on one page and hide fields (which became more trouble
than it was worth!).

Does anyone have a more practical/useful way of preserving field values from
page-to-page... or hiding fields as a user clicks on each tag?



PHP Database Mailing List (
To unsubscribe, visit:

This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to