Re: use a value from a menu list in a form on the same page [message #181234 is a reply to message #181228] |
Mon, 22 April 2013 12:37 |
David Robley
Messages: 23 Registered: March 2013
Karma:
|
Junior Member |
|
|
newbie php wrote:
> Hi all,
>
> I'm so glad you guys helped me out a couple of days ago, so i thought i'd
> had another go. Here's the situation: in a form i want a visitor to choose
> form a list a value of 1 to 10. This chosen value should be multiplied by
> a value of 2750 which should be stored in a variable and shown on the page
> (recalculated by any change in the list) this value does nog necesarily be
> in the form itself. The most important question is how to put the chosen
> value in a variable.
>
> Any help is greatly appreciated
>
> cheers
Check out http://au1.php.net/manual/en/faq.html.php. Of course you'll want
to check whether any values from the list have been passed in when the page
loads, before you do any calculations.
--
Cheers
David Robley
Join the army, meet interesting people, kill them.
|
|
|