Forms

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.....

K
;)

KartibokAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saqib KhanSenior DeveloperCommented:
Something Like This?

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

<BODY>
<form>
<select name="s1">
<option value=150>Table 1
<option value=200> Table2
</Select>
<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
</setect>
<input type="text" name="total">
</form>
</BODY>
</HTML>
0
mrwebdevCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KartibokAuthor Commented:
Many thanks to both of you. Th eone that requires less programming was the one I had to go for. Once again ....

Many thanks

K
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.