I'm offering a selection of three items. One is $25, the second is $50, the third is $100.
Along with selection one of the items I need to pass the quantity of the selection. Here is
the code now.
<tr><td><inpu t type="radio" name="item_name " value="Reduced" >Reduced</td><td><input
type="radio" name="amount" value="25">$25. 00ea.</td></tr>
<tr><td><inpu t type="radio" name="item_name " value="Regular" >Regular</td><td><input
type="radio" name="amount" value="50">$50. 00ea.</td></tr>
<tr><td><inpu t type="radio" name="item_name " value="Premium" >Premium</td><td><input
type="radio" name="amount" value="100">$10 0.00ea.</td></tr>
<tr><td>Numbe r of Tickets: </td><td><INPUT TYPE="text" NAME="quantity" size="3"></td></tr>
Having a radio button for "amount" and "item_name" isn't going to work.
I can't figure out how to get the "amount" to be passed when the radio button for
"item_name" is selected.
Can I do this in a simple HTML form? And how?
Thanks in advance 2 2893
On Tue, 26 Oct 2004 11:25:29 -0400, Stoic <st************ @aequalis.com>
wrote: I'm offering a selection of three items. One is $25, the second is $50, the third is $100. Along with selection one of the items I need to pass the quantity of the selection. Here is the code now.
<tr><td><inpu t type="radio" name="item_name " value="Reduced" >Reduced</td><td><input type="radio" name="amount" value="25">$25. 00ea.</td></tr>
<tr><td><inpu t type="radio" name="item_name " value="Regular" >Regular</td><td><input type="radio" name="amount" value="50">$50. 00ea.</td></tr>
<tr><td><inpu t type="radio" name="item_name " value="Premium" >Premium</td><td><input type="radio" name="amount" value="100">$10 0.00ea.</td></tr>
Having a radio button for "amount" and "item_name" isn't going to work.
Why not? Why do you need both values? From what we can see above Reduced =
25, Regular = 50 and Premium = 100, so just pass one value and let the
server side code handle the rest.
Steve
"Stoic" <st************ @aequalis.com> wrote in message
news:MP******** *************** *@news.giganews .com... I'm offering a selection of three items. One is $25, the second is $50,
the third is $100. Along with selection one of the items I need to pass the quantity of the
selection. Here is the code now.
<tr><td><inpu t type="radio" name="item_name "
value="Reduced" >Reduced</td><td><input type="radio" name="amount" value="25">$25. 00ea.</td></tr>
<tr><td><inpu t type="radio" name="item_name "
value="Regular" >Regular</td><td><input type="radio" name="amount" value="50">$50. 00ea.</td></tr>
<tr><td><inpu t type="radio" name="item_name "
value="Premium" >Premium</td><td><input type="radio" name="amount" value="100">$10 0.00ea.</td></tr>
<tr><td>Numbe r of Tickets: </td><td><INPUT TYPE="text" NAME="quantity"
size="3"></td></tr> Having a radio button for "amount" and "item_name" isn't going to work.
I can't figure out how to get the "amount" to be passed when the radio
button for "item_name" is selected.
Can I do this in a simple HTML form? And how?
Why do you have two radio buttons for each choice in the first place? You
should have a single radio button for each choice. Each one's value should
be something from which the code at the server will be able to determine
both the type of admission and the price. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JT |
last post by:
I have an input form for which I've created a "matrix" for user input.
Basically, the user chooses a radio button and then through javascript, a
select box is displayed to define a value for that radio option, like so:
Choice: (Radio1) type: (select box1)
Choice: (Radio1) type: (select box2)
Choice: (Radio1) type: (select box3)
Choice: (Radio1) type: (select box4)
Choice: (Radio1) type: (select box5)
|
by: Kevin Lyons |
last post by:
Hello,
I am trying to get my select options (courses) passed correctly from
the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html
I am having difficulty getting the courses to pass the correct option
value and then be displayed at the following URL:
http://www.dslextreme.com/users/kevinlyons/selectResults.html
I am passing countries, products, and courses. The first two display
|
by: Dave |
last post by:
Hi,
there used to be a simple javascript quiz builder in builder.com, with
which I made the page whose code is given below.
I would like to tweak this so that there are only three (not 4) answer
options, and that they are presented alongside radio buttons (not in a
selectable list). I would be grateful if someone knows how to do this
for me. It would be nice if the student doing the quiz selects the
right answer with the radio button,...
|
by: JR |
last post by:
Hi. I hope someone out there who is more versed with JavaScript than
I can help me with the following annoying problem. Here's the
problem.
I have a form with the following layout:
Column A Column B Column C
data 4 radio buttons more data
.... ... ...
.... ... ...
|
by: bobsawyer |
last post by:
I've been building a series of SELECT lists that are populated
dynamically using HTTPRequest. Things are going pretty well, and I've
got the whole thing working flawlessly in Mozilla/Firebird.
Unfortunately, Internet Explorer doesn't quite work as expected -- it
gives me an "invalid argument" error that I don't know how to fix.
Here's the entire script, with form, annotated to explain what I'm
doing and where the problem is occurring. I...
| |
by: David Cameron |
last post by:
I noticed
that using an HTMLInputRadioButton and specifying a value to be an empty
string (""), this is overridden by ASP.Net which set the value of the
control to be the same as the ID of the control.
See the code below
* Page.aspx:
<%@ Page language="c#" Codebehind="Test.aspx.cs" AutoEventWireup="false"
Inherits="Webspace.Test" %>
|
by: Fran Jakers |
last post by:
Hello all,
I'm new to all this and I could really use some help. I've searched the web but cannot find an answer.
I have an HTML form with 3 radio buttons and a search field that calls a MySQL database using JavaScript to find a product either by Product ID, Description, or Both. Originally, the 'Both' radio button was "checked" but I now want the 'Product ID' button set as the default choice (as you can see from the code below).
...
|
by: runway27 |
last post by:
hi
i have registration form where user selects from a drop down to select their area code apart from filling other details in the form. in the next page which is a confirmation page i would like to display the select option that a user choose in the first page i am able to display this using a textfield however i would like to display using the select drop down.
following is the code for both select and radio button that i have used.
1....
|
by: Twayne |
last post by:
Hi,
Newbie to PHP here, no C or other relevant background, so pretty niave
w/r to the nuances etc. but I think this is pretty basic.
XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server 6.something I think
and running as a service, Using NoteTab Pro as an IDE (works well). If
you need more, just ask.
In one functioning form:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |