codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  JAVA If statements  49erslove at 02:48 on Saturday, February 06, 2010
 

I need some help please!

I'm trying to create a name generator for pets. I would like to have a drop down menu with the selection options such as "dog, cat, fish, reptile" and then have the generator display an adjective that is based on the specific pet and then a noun that is random for all pets. That way the adjective could be like a first name and the noun like a last name.

I am having trouble with If statements. I can do the "cat and dog" but i can't figure out how to add a third pet. I am using If and then Else.

Any help?










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• Re: How to concatenate a string and a variable using perl?
• Re: repaint() slow performence..
• Re: How Can I Get The Height Of A Hidden <div>?
• Re: Firefox/IE doctype problem.
• Re: Plz its urgent:validation code
• Re: Write text strings to Serial Port
• Re: Error configuring webservice identity in reporting services 2005
• Re: sort hash by value, numerically
• Re: Accessing user control in master page from any content page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010