SRL Archive - General

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


ronny.m.p

2007-05-24 17:22:27

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


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

Erik the Red

2007-05-24 21:12:42

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.

Markus

2007-05-28 11:25:37

There isn't any If, then in HTML, there is in javascript.

Wilio

2007-08-29 13:32:56

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.

Mr.Klean

2007-08-29 14:28:41

05-28-2007, 10:25 AM

Don't gravedig.