You are here: Re: Maintain variable value? « PHP Programming Language « IT news, forums, messages
Re: Maintain variable value?

Posted by Kim Andrι Akerψ on 04/24/06 04:30

Garry Jones wrote:

> In form 1 I have a combo box where the user picks a number
>
> <select NAME="deltcnt">
> <option VALUE="1">1
> <option VALUE="2">2
> ...
> <option VALUE="99">99
>
> Form 1 is processed by form 2 where I assign a variable to this
> number with
>
> <? $vtcnt = $_POST["deltcnt"]; ?>
>
> Form 2 is then processed by form 3.
>
> Is there a simple way to call up this variable and display it on Form
> 3?

Yes, just use hidden form fields, like this:

<input type="hidden" name="fieldname" value="value">

In your case, use something like this in form 2 (after assigning
$vtcnt, of course):

<input type="hidden" name="deltcnt" value="<? echo $vtcnt; ?>">

--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация