• Log in or sign up for an account here: https://www.sythe.org/login

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

ronny.m.p

Active Member
Joined
Jan 21, 2007
Sythe Gold
0
Messages
111
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
 
Can't do this in strictly html.

You need to combine this with a scripting language like javascript or php.
 
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
VBScript is what you're looking for, Google has your answer :)
 
Runescape Gamblingrunescape gambling
Back
Top