Re: my 'if' comands are still not working. please help

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



No, you don't need the "else" parts. I added them to help in
understanding.

Regarding the "loads of if statements", there is the "switch" statement
you may be interested in using:

example:
switch(mycondition)
{
case "apple":
do_something;
break;
case "orange":
do_somethingelse;
break;
case "pear":
do_still_somethingelse;
break;
default:
do_something_if_none_of_them_match;
break;
}

Only one case will execute.

The rules of javascript should be the same wether the code is internal
or external.

Did you try the code I supplied?

Please supply more code if you need debugging help.

Also, what are you using to process the form?
Typically, you would need CGI,PERL,JSP,PHP,etc.
You may want to set up a session and maintain a "shopping cart".
Anyway that is my recommendation.

Regards,
Geodepe
http://www.digitalorder.com

.



Relevant Pages

  • Apple II Hall of Fame
    ... The initial Apple II Hall of Fame committee was established at ... KFest 2005 with the Founding Members as follows: ... Suggestions at the KFest session were to consider: ... as well as individuals for consideration for induction into the HOF. ...
    (comp.sys.apple2)
  • Re: KFest 2009 Report
    ... Busy day today! ... Sheppy had a Q & A session on Apple Programming, ... collections on the Syndicomm.com store. ... Geoff Weiss had a session on Sun's Virtual Box 3.0. ...
    (comp.sys.apple2)
  • Re: Question about data persistence in Public variables
    ... Session and/or Cache is used to ... That is my understanding but it is not what I am seeing. ... > is that these members have the same lifetime as Shared members. ... > Shared variable has only a single lifetime, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: KFest 2007 Report
    ... First session was Andrew Roughan's on the Marinetti Open Source ... we made a run to the Apple Store where I enriched ... Ryan and I went in search of the great steaming Krispy Kreme ...
    (comp.sys.apple2)
  • Re: Color kill problem?
    ... a look into "Understanding the Apple II", ... if logic circuits and schematics aren't totally foreign things ...
    (comp.sys.apple2)