The If Then control structure can be used to run a line or block of code within your script when a certain condition is met.
Below are 4 ways to use the If Then control structure.
Why bother with ASP at all, when HTML can serve your needs? If you want to display information, all you have to do is fire up your favorite text editor, type in a few HTML tags, and save it as an HTML file.
Bingo, you?re done!
ASP: Another acronym (As if you hadnt guessed) which stands for "Active Server Pages". This suggests quite a lot about the technology already, in that its processed, or parsed server side and its dynamic in nature, rather than static technologies like HTML.
Below are two examples of how to deal with bad words. Example 1 receives text entered into a form textfield called 'txtComments'. The code strips out any bad word(s) that you choose to enter into the array 'badChars'. In this script we have deemed that the words 'rubbish', 'crap' and 'shit' are unacceptable and should be removed.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.