KooKoo's Guide to ASP! menu

User Tag List

Results 1 to 1 of 1
  1. #1
    kookoo's Avatar Contributor
    Reputation
    81
    Join Date
    Dec 2006
    Posts
    198
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    KooKoo's Guide to ASP!

    This is my attempt to write a guide for you fellas who wanna know more about ASP. Also note that English is my third language so be nice

    What is ASP?
    ASP is short for Active Server Pages, A dynamic serverside programming language created by Microsoft.
    How does it work?
    When a browser requests an HTML file, the server returns the file
    When a browser requests an ASP file, IIS passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the scripts in the file. Finally, the ASP file is returned to the browser as plain HTML.
    Example:

    Client => completes registration form, hit register => Server processes the information with the help of ASP using Request.form or Request.Querystring and saves the information into a database (mySQL, Access, SQLserver ) => User gets redirected to another page.

    ASP code is imbedded into HTML code but with different kind of tags so the server knows what to snap up and not to. the tags are started with <% and ended with %>

    Because ASP is a serverside language the user will never see any parts of the code as stated before, ASPcode gets snapped up by the server and runs the script and produces the result based on your script.

    Because of the way the server snaps up the code you can create logins without being afraid that people will know the password or check source of your page because there isn't any ASP code!

    Code example of login.asp
    Code:
    <html>
    <head>
    <title>login!</title>
    </head>
    <body>
    <form method="post" action="login.asp?do=login">
    <input type="text" name="user">
    <input type="password" name="password">
    <input type="submit" value="log in">
    </form>
    
    
    <% 
          If Request.Querystring("do") = "login" Then    ' By using Querystring you can get information that is in the url
          User = Request.Form("user")                         ' Request.Form is a function to extract information out of a form                          '
          Password = Request.Form("password")
          If User = "mmowned" And Password = "owns" Then ' If then else is a function to make a statement or to guide the information you have
          Response.Redirect "members.asp"    ' Response.Redirect is just a way to send users to other pages and so on.
          Else
          Response.Redirect "youfail.asp"
          End If
    %>
    </body>
    </html>
    If you would check the source of this code you would get this

    Code:
    <html>
    <head>
    <title>login!</title>
    </head>
    <body>
    <form method="post" action="login.asp?do=login">
    <input type="text" name="user">
    <input type="password" name="password">
    <input type="submit" value="log in">
    </form>
    </body>
    </html>

    Since I am not good at writing guides nor tutorials, just ask me questions and I'll answer them
    The aim of life is self-development. To realize one's nature perfectly - that is what each of us is here for.
    Oscar Wilde

    KooKoo's Guide to ASP!

Similar Threads

  1. LF asp.net guides
    By CreativeXtent in forum Programming
    Replies: 0
    Last Post: 05-22-2013, 05:21 AM
  2. KooKoo's Guide to Glider & Ppather
    By kookoo in forum WoW Bot Maps And Profiles
    Replies: 10
    Last Post: 01-08-2009, 10:57 PM
  3. 1-60 Horde Leveling Guide w/ Quests
    By Matt in forum World of Warcraft Guides
    Replies: 23
    Last Post: 04-17-2007, 07:26 PM
  4. Blackwing Lair: Ultimate Boss Guide
    By Matt in forum World of Warcraft Guides
    Replies: 11
    Last Post: 11-02-2006, 05:18 AM
  5. 8 World of Warcraft Guide Packs (Gold, Profs and Skills)
    By Matt in forum World of Warcraft Guides
    Replies: 17
    Last Post: 09-23-2006, 10:53 AM
All times are GMT -5. The time now is 11:51 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search