Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:14:33+00:00 2026-06-05T18:14:33+00:00

I have an asp based shopping cart that uses html based templates to display

  • 0

I have an asp based shopping cart that uses html based templates to display products. In each product section I have several items and each item has both a price per single “pack” of the item and a price for a “case” of that item. Under each price for “pack” there is a quantity text box and a submit button for that, and right next to it is a price for the cases of that item, a quantity text box, and a submit button for that. Normally this works just fine because everything has a different value and it’s easy to have the 2 separate forms (one for “pack” and one for “case”) in each product listed on the page.

However, I came across a problem in which one of the products has an option that is set up by the use of radio buttons. Now the radio button “features” are displayed while I’m setting up the form for the “packs” and whatever selection the user picks is properly displayed when they press the submit button for a “pack”. However, when they order a “case”, since it is a separate form, it doesn’t see the “feature” value and pass it along with the case submit button press.

The question is, can you set up some radio buttons and have them pass whatever item is selected to 2 different submit buttons? As I have it now, the pack starts up the form code and then inside of that I have the case form. I have put in some simplified code below. The things like Product: and Features: are just dummy text in place of all the formatting junk that isn’t relevant to this question. The html code that I show below is the only part that I’m trying to change.

<form action="addtocart.asp" method="post">
<input name="productid" value="11" type="hidden">
Product:
Features:
Options:
    <input checked="checked" name="Feature" value="1" type="radio">Option1
    <input name="Feature" value="2" type="radio">Option2
    <input name="Required" value="8" type="hidden">
Price Per Pack:
Quantity:
    <input class="txtfield" maxlength="4" size="3" value="1" name="quantity" type="text">
Pack Submit Button:
    <input class="submitbtn" value=" Order " name="Order" type="submit">
Price Per Case:
<form name="casename" action="addtocart.asp" method="post">
Quantity:
    <input class="txtfield" maxlength="4" size="3" value="1" name="quantity" type="text">
    <input name="productid" value="24" type="hidden">
Case Submit Button:
    <input class="submitbtn" value=" Order " name="Order" type="submit">
</form>

The “Options” section above is where they are selecting the radio button choice, so is it possible to have each submit button pass this information along or do I need to use javascript or something like that?

Thanks for taking a look at my question!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:14:35+00:00Added an answer on June 5, 2026 at 6:14 pm

    forms values are independent, so you have two options:

    • use one form instead of two if possible
    • use javascript to copy the values you need to the other form when the radio button is selected

    Also, you can’t or shouldn’t have a form inside a form as far as I know. It may work ok in some browsers, but it’s invalid HTML

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net 4.0 web site that generates email alerts based on several
We have a web based (ASP.NET MVC) application that uses SQL Server 2008 for
I have an ASP.NET WebService that supports standard WSDL based SOAP calls and a
Let me share the following scenario: I have a ASP.NET intranet Web-based application that
I realise that Sharepoint in asp .net based but I have a PHP application
I keep reading that an ASP.NET based web site should have custom errors enabled
I have to build small MVC3 ASP.NET based portal that will receive data in
I have an asp.net page that needs to populate a treeview based on a
In my ASP.NET web-based application, I have a normal ASP.NET button that has a
I have an asp:UpdatePanel that is hidden or not based on the code behind

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.