FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » use a value form a manu list in a form on the same page
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
use a value form a manu list in a form on the same page [message #181228] Mon, 22 April 2013 10:40 Go to next message
newbie php is currently offline  newbie php
Messages: 3
Registered: April 2013
Karma: 0
Junior Member
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
Re: use a value form a manu list in a form on the same page [message #181229 is a reply to message #181228] Mon, 22 April 2013 11:10 Go to previous messageGo to next message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma: 0
Senior Member
newbie php <s(dot)hoitinga(at)gmail(dot)com> wrote in news:0bb368d4-5bd4-4cbb-aeb9-
6962aa134b6d(at)googlegroups(dot)com:

> 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

Do your own homework.
Re: use a value form a manu list in a form on the same page [message #181233 is a reply to message #181228] Mon, 22 April 2013 12:14 Go to previous messageGo to next message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma: 0
Senior Member
newbie php wrote:

> […]

Get a real name, and learn how to post in a readable way (even via Google
Groups, if absolutely necessary), then we can talk.


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
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 Go to previous messageGo to next message
David Robley is currently offline  David Robley
Messages: 23
Registered: March 2013
Karma: 0
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.
Re: use a value form a manu list in a form on the same page [message #181601 is a reply to message #181229] Thu, 23 May 2013 20:57 Go to previous messageGo to next message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma: 0
Senior Member
On 4/22/2013 7:10 AM, Doug Miller wrote:
> newbie php <s(dot)hoitinga(at)gmail(dot)com> wrote in news:0bb368d4-5bd4-4cbb-aeb9-
> 6962aa134b6d(at)googlegroups(dot)com:
>
>> 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
>
> Do your own homework.
>
How do you know it's a homework assignment? Or is that just a fecetious
attempt to start flames?

When you have nothing to say, that's exactly what you should say; NOTHING!
Re: use a value form a manu list in a form on the same page [message #181602 is a reply to message #181229] Thu, 23 May 2013 20:58 Go to previous messageGo to next message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma: 0
Senior Member
On 4/22/2013 7:10 AM, Doug Miller wrote:
> newbie php <s(dot)hoitinga(at)gmail(dot)com> wrote in news:0bb368d4-5bd4-4cbb-aeb9-
> 6962aa134b6d(at)googlegroups(dot)com:
>
>> 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
>
> Do your own homework.
>
Hmm, another copy-cat. Perhaps some Interpersonal Skills would help you.
Re: use a value form a manu list in a form on the same page [message #181603 is a reply to message #181233] Thu, 23 May 2013 21:03 Go to previous messageGo to next message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma: 0
Senior Member
On 4/22/2013 8:14 AM, Thomas 'PointedEars' Lahn wrote:
> newbie php wrote:
>
>> […]
>
> Get a real name, and learn how to post in a readable way (even via Google
> Groups, if absolutely necessary), then we can talk.
>
>
> PointedEars
>

Looks like you're too lazy to bother reading the ng for responses in my
opinion. Putting a real name and address into a ng is a sure way to
assist those who wish to spam/scam and thieves one's identity. Or is
that what you're about? scraping personal ID data?

Lotsa luck, pointed.
Re: use a value form a manu list in a form on the same page [message #181604 is a reply to message #181601] Thu, 23 May 2013 21:55 Go to previous messageGo to next message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma: 0
Senior Member
Twayne <nobody(at)spamcop(dot)net> wrote in
news:knlvr8$ma2$1(at)speranza(dot)aioe(dot)org:

> On 4/22/2013 7:10 AM, Doug Miller wrote:
>> newbie php <s(dot)hoitinga(at)gmail(dot)com> wrote in
>> news:0bb368d4-5bd4-4cbb-aeb9- 6962aa134b6d(at)googlegroups(dot)com:
>>
>>> 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
>>
>> Do your own homework.
>>
> How do you know it's a homework assignment?

Isn't it obvious?

> Or is that just a fecetious
> attempt to start flames?

It got *your* panties in a wad, anyway...
>
> When you have nothing to say, that's exactly what you should
> say; NOTHING!

I *did* have something to say -- "do your own homework" -- and I
said it.

*You*, on the other hand, have not contributed anything useful to
this thread, or, indeed, to any other thread in any other
newsgroup which you have infested -- so I need to add *yet
another* of your constantly-shifting nyms to the killfile.

Buh-bye!
Re: use a value form a manu list in a form on the same page [message #181605 is a reply to message #181602] Thu, 23 May 2013 21:55 Go to previous messageGo to next message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma: 0
Senior Member
Twayne <nobody(at)spamcop(dot)net> wrote in
news:knlvuc$ma2$2(at)speranza(dot)aioe(dot)org:

> On 4/22/2013 7:10 AM, Doug Miller wrote:
>> newbie php <s(dot)hoitinga(at)gmail(dot)com> wrote in
>> news:0bb368d4-5bd4-4cbb-aeb9- 6962aa134b6d(at)googlegroups(dot)com:
>>
>>> 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
>>
>> Do your own homework.
>>
> Hmm, another copy-cat. Perhaps some Interpersonal Skills would
> help you.

Idiot. It's the same post.
Re: use a value form a manu list in a form on the same page [message #181608 is a reply to message #181605] Thu, 23 May 2013 22:38 Go to previous messageGo to next message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
On 5/23/2013 2:55 PM, Doug Miller wrote:
> Twayne <nobody(at)spamcop(dot)net> wrote in
> news:knlvuc$ma2$2(at)speranza(dot)aioe(dot)org:
>
>> On 4/22/2013 7:10 AM, Doug Miller wrote:
>>> newbie php <s(dot)hoitinga(at)gmail(dot)com> wrote in
>>> news:0bb368d4-5bd4-4cbb-aeb9- 6962aa134b6d(at)googlegroups(dot)com:
>>>
>>>> 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
>>>
>>> Do your own homework.
>>>
>> Hmm, another copy-cat. Perhaps some Interpersonal Skills would
>> help you.
>
> Idiot. It's the same post.
>

hahahaha....whew...I needed a good laugh, thanks
Re: use a value form a manu list in a form on the same page [message #181610 is a reply to message #181228] Fri, 24 May 2013 00:19 Go to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Mon, 22 Apr 2013 03:40:12 -0700, newbie php wrote:

> I'm so glad you guys helped me out a couple of days ago, so i thought
> i'd had another go.

You did? How did that work out for you.

> Here's the situation: in a form i want a visitor to choose form a list a
> value of 1 to 10.

Yeah, in a form if you want the user to choose a number like that you can
use an html select / option, or a set of radio buttons, or you could use
a text input and let the user enter a number, but they might enter a
number outside your range.

> 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 sounds more like a javascript thing than a php thing, you probably
don't want to submit your form to the server each time the user changes
their option.

> this value does nog necesarily be in the form itself. The most important
> question is how to put the chosen value in a variable.

Not quite sure what a nog is.

Well you'd use an appropriate javascript function to get the value from
the input type that you were using, making sure that you did any needed
conversions to numeric data if it started life as a string value, and
then do the relevant multiplication and display it in a suitable output
location.

> Any help is greatly appreciated

You're welcome.

xp and fu set, this sounds like primarily a js issue, not a php one

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cause of error is what?
Next Topic: testing for source to use
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 12:38:43 GMT 2024

Total time taken to generate the page: 0.02481 seconds