Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium



Posted on 2004-11-03
Medium Priority
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 seat...eg 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

by:Saqib Khan
ID: 12488002
Something Like This?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<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">

Accepted Solution

mrwebdev earned 2000 total points
ID: 12488066

Author Comment

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

Many thanks


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
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…
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month13 days, 16 hours left to enroll

581 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