Re: pass value to next page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks much, y'all.  Forgive to my typo on the original email.

On 11/7/06, Jochem Maas <jochem@xxxxxxxxxxxxx> 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
>



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux