Re: pass value to next page
| From: | Wang Chen | Date: | Wed, 08 Nov 2006 01:34:10 +0000 |
| Subject: | Re: pass value to next page | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244356@lists.php.net to get a copy of this message | ||
Thanks much, y'all. Forgive to my typo on the original email.
On 11/7/06, Jochem Maas <jochem@iamjochem.com> wrote:
Wang Chen wrote:
Hi ,
Newbie question, I have a form,
<form acttion="search.php3" method="post">
input .....
input.......
.......................
</form>
The search.php3 goes to query mysql database to see if the infomation is
.php3 extension is, I would say, discouraged. just use .php
new
or existed, if new, will promt
two radio buttons ( Yes or No) to confirm if you like to enter the info
inot DB .The form will action="result.php"
2 options:
1. php solution, put the data in $_SESSION and retrieve it
again when you have the 'insert' confirmation - (search the manual for
session usage)
2. html solution, in the second form put the inputs from the first form,
set all their
type attributes to hidden and set the value accodingly:
<input type="hidden" value="<?php echo $data['foo']; ?>" name="foo" />
My question is how we can passwd the values which are entered in first
page
looks like you mean pass not passwd :-)
to result.php page.
Thank you for your help