Re: my 'if' comands are still not working. please help
- From: geodepe@xxxxxxxxx
- Date: 3 Jun 2005 19:35:44 -0700
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
.
- Prev by Date: Re: ***Java variable pass via url, failing on an if statement...
- Next by Date: Re: ***Java variable pass via url, failing on an if statement...
- Previous by thread: ***Java variable pass via url, failing on an if statement...
- Next by thread: Re: frontpage2002 not able to do office SP3
- Index(es):
Relevant Pages
|