Posted on 2004-11-03
Last Modified: 2010-04-25
I am trying to create a form for a friend. He is running a party site. My problem is that I have created 2 drop down menus.
One says;

Text - What table number would you like?      Table 1    (with a value of 1)
                                                                  Table 2    (with a value of 2 etc)

The other says;

Number of seats required? 1       (value of 1)
                                       2        (value of 2 etc)

I would like a third box that tells me the total price of the selection?

Each table is priced per tables 1 -20 are £150 per seat. Could I get it to tell the price in the final box? Or would it require loads of programming?

If anyone can help it would be appreciated.....


Question by:Kartibok
    LVL 23

    Expert Comment

    Something Like This?

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">

    <select name="s1">
    <option value=150>Table 1
    <option value=200> Table2
    <Select name= "s2" onChange="total.value=s1.options[s1.options.selectedIndex].value * s2.options[s2.options.selectedIndex].value">
    <option value=1>Seat 1
    <option value=2>Seat 2
    <input type="text" name="total">
    LVL 6

    Accepted Solution


    Author Comment

    Many thanks to both of you. Th eone that requires less programming was the one I had to go for. Once again ....

    Many thanks


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now