Results 1 to 5 of 5

Thread: if, then, else statements in html???---HURRY!!!

  1. #1
    ronny.m.p Guest

    if, then, else statements in html???---HURRY!!!

    I need to know if there are any sort of staements like if and then in html. In pascal it would be like this:

    Code:
    begin
    if VariableHere = TheValue then
    ...other code here
    So it will check if a variable has a certain value. Basicly what i want it for is a Password and Username page. So if you enter the correct password then it will go to the next page. If you give me code please put comments in your post because im new at this. Also i'm going to make a serach area that will search for something. Basicly if you enter a value it will go to the corsponding page. But only if the value is registered in an array of some sort. I'm just spit balling but help is ++++++++needed. Thanks bunchs.

    -Ronny

  2. #2
    Join Date
    Dec 2006
    Location
    B.C. Canada
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You're probably going to need to look into javascript or some other webpage coding language. HTML is just tags but with <script> tags you can put in javascript. i recomend going to w3schools.com they have good tutorials on there.

  3. #3
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    There isn't any If, then in HTML, there is in javascript.
    I made a new script, check it out!.

  4. #4
    Join Date
    Aug 2007
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Html isn't really a programming language. So of course you won't find if's and else.
    You'll have more luck looking into PHP and javascript.

  5. #5
    Join Date
    Nov 2006
    Location
    Wisconsin
    Posts
    1,629
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    05-28-2007, 10:25 AM

    Don't gravedig.


    Quote Originally Posted by Rubix View Post
    Quote Originally Posted by Dan Cardin View Post
    you ought to listen to Mr. Klean...he's magical!
    this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. if then statements
    By Bobzilla69 in forum Java Help and Tutorials
    Replies: 9
    Last Post: 06-11-2008, 11:52 AM
  2. For DownTo / To Do [Statements]
    By Special Ed in forum Outdated Tutorials
    Replies: 7
    Last Post: 12-26-2007, 06:33 AM
  3. If statements
    By Its Miller Time in forum OSR Help
    Replies: 2
    Last Post: 06-08-2007, 06:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •