Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Off-Topic > Simple to Add, Hard to Code. (webpages)
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
20.Sep: FOURTH CHAPTER IN `HISTORY OF...` PUBLISHED
13.Sep: NEWS ON THE FLY
06.Sep: APOLYTON DONATES TO HURRICANE RELIEF

bottom of page
   - CIVILIZATION 3 $9.99 - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - ALPHA CENTAURI + ALIEN CROSSFIRE (laptop collection) from $19.99 - ALPHA CENTAURI PC $9.99 -->
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Sn00py is offline Sn00py
King
From New Zealand
Aug 2001
time: 13:16
  Old Post 18-04-2005 07:42 Visit Sn00py's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Simple to Add, Hard to Code. (webpages) Support Apolyton buy from Amazon

I've got this programming problem. Let me break it down for you:

I have a webpage. (It is an ASP page)

This webpage has a form on it.

This form has 3 different drop down menus.

Each drop down menu has more than 1 item to select from.

Each item has a different price.

One of the drop down menu's is required to select.

The submit button takes you to a confirmation page.

The confirmation page shows you what you selected and gives you the total price of the items you selected.

Here's the problem: How do I make the calculations work?

Lancer is offline Lancer
Emperor
Oregon Coast, USA! or Bohol, Philippines!
Apr 1999
time: 05:16
  Old Post 18-04-2005 07:48
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition



Tis the wizard who did the graphics!

Kuciwalker is offline Kuciwalker
Emperor
of Schmooism
Feb 2001
time: 00:16
  Old Post 18-04-2005 08:23
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Magic.

Sn00py is offline Sn00py
King
From New Zealand
Aug 2001
time: 13:16
  Old Post 18-04-2005 08:25 Visit Sn00py's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Call to Power 2

In other words, I am more likely to know the answer than you two guys.

Lancer is offline Lancer
Emperor
Oregon Coast, USA! or Bohol, Philippines!
Apr 1999
time: 05:16
  Old Post 18-04-2005 09:02
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase the size of your Attachments

Actually, since you already stated that you don't know, we are all equally likely to know, great one.

Ted Striker is offline Ted Striker
Emperor
United States of America
Jan 1970
time: 21:16
  Old Post 18-04-2005 09:05 Visit Ted Striker's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Help yourself to an AD-FREE life

Check out the ASP forums:

http://forums.devshed.com/f51/sb134...d87895bac070c99

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:16
  Old Post 18-04-2005 15:01 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Re: Simple to Add, Hard to Code. (webpages) Inflate your Upload Space

quote:
Originally posted by Sn00py
I've got this programming problem. Let me break it down for you:

I have a webpage. (It is an ASP page)

This webpage has a form on it.

This form has 3 different drop down menus.

Each drop down menu has more than 1 item to select from.

Each item has a different price.

One of the drop down menu's is required to select.

The submit button takes you to a confirmation page.

The confirmation page shows you what you selected and gives you the total price of the items you selected.

Here's the problem: How do I make the calculations work?


I don't know ASP, but what's so hard about that?
Anyway I think you'll have to use JavaScript, because you wouldn't know which drop down box the user has selected when he selects items in more than one and then hits submit.
So if he selects an item in one box you'll have to reset the other two boxes to some default value like "-- select --" or something like that.

Ofc, you have a problem if someone hasn't activated JavaScript, but there is no easy way around this.

Getting the value in ASP is a one liner I suppose. Ofc, you also need to do sanity checks, which makes it a 10 liner probably

If you know nothing about ASP I suggest you read some tutorials or buy a book.

Urban Ranger is offline Urban Ranger
Apolyton Duke of Off-Topic

Donate to the Red Cross
The City State of Noosphere, CPA special envoy
May 1999
time: 13:16
  Old Post 19-04-2005 12:51
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

I don't use ASP either, here's how it works in PHP.

First, name all your menus. In fact, your safe bet is to name everything in (X)HTML with the name attribute. That way the values can get passed back in name-value pairs.Then all you need to do is to look into either the $_GET or $_POST for the values.

Sn00py is offline Sn00py
King
From New Zealand
Aug 2001
time: 13:16
  Old Post 19-04-2005 14:22 Visit Sn00py's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Get a bigger avatar today!

Thanks for the help.

I managed to get it going with javascript.

I am a graphic designer, not a programmer, but because of this job I have to be a programmer aswell!

The thing I really hate about coding is that when you figure out how to do it; it all makes logical sense. Not only that, but the answer is usually 10x smaller in size than what you originally tried out.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:16.
Apolyton Time is 00:16.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0299 seconds (86.68% PHP - 13.32% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net