Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Buttons how to retrieve "value"?

Reply
Thread Tools

Buttons how to retrieve "value"?

 
 
richard
Guest
Posts: n/a
 
      11-27-2009
<td class="ql"><input type="submit" Value="A"></input></td>

In the above example, a rough one, how exactly is the value of "A" passed
to another item?
I have a simple form with 4 buttons for choices. A B C D.
When user clicks "B", the response will read maybe something like
"you pressed B".

 
Reply With Quote
 
 
 
 
Harlan Messinger
Guest
Posts: n/a
 
      11-27-2009
richard wrote:
> <td class="ql"><input type="submit" Value="A"></input></td>
>
> In the above example, a rough one, how exactly is the value of "A" passed
> to another item?
> I have a simple form with 4 buttons for choices. A B C D.
> When user clicks "B", the response will read maybe something like
> "you pressed B".
>


You have to give the buttons a name, just like you would give any
control. Give them all the same name, with different values, and then
check the value that is returned for a control by the name in the page
to which the form is submitted.
 
Reply With Quote
 
 
 
 
richard
Guest
Posts: n/a
 
      11-28-2009
On Fri, 27 Nov 2009 15:29:18 -0700, richard wrote:

> <td class="ql"><input type="submit" Value="A"></input></td>
>
> In the above example, a rough one, how exactly is the value of "A" passed
> to another item?
> I have a simple form with 4 buttons for choices. A B C D.
> When user clicks "B", the response will read maybe something like
> "you pressed B".


done figured it all out thank you.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Datagrid Nav buttons and numeric buttons Jeremy Jones ASP .Net 1 03-22-2007 08:00 AM
Image Buttons/Buttons not responding =?Utf-8?B?QmVu?= ASP .Net 1 07-06-2005 07:34 AM
2 buttons but want enter key in textbox to execute one buttons' click event? Roger ASP .Net 1 05-20-2005 09:47 PM
How to retrieve a value from a set of radio buttons Rob ASP .Net 2 08-31-2004 11:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57