Asp help please

Discussion in 'Software' started by Jodi, May 31, 2006.

  1. Jodi

    Jodi Private First Class

    Does anyone happen to know if there is something wrong with this script?

    when ever I go the page associated with it in my browser I get a download prompt, it must be a script error. Here is the url....http://www.yourpagetoday.com/login.asp

    and here is the asp script.
    Thank you all in advance, I really appreciate the help.
    <%

    if request.cookies("extended_members_area") = "qw339cmx" then response.redirect("main.asp")

    sub login()

    response.cookies("extended_members_area") = "qw339cmx"

    response.redirect("main.asp")

    end sub

    if request.form("username") = "johndoe" and request.form("password") = "letmein" then login()

    if request.form("username") = "tim" and request.form("password") = "ilikeasp" then login()

    if request.form("username") = "adam" and request.form("password") = "iliketw" then login()

    %>


    and the form...
    Please login to access this Member’s Area.

    <% if request.form("submit") = "Enter!" then %>

    <font color="red"><b>You entered an incorrect username/password combination. Please try again.</b></font><br>

    <% end if %>

    <form action="login.asp" method="post">

    Username: <input type="text" name="username">

    Password: <input type="password" name="password">

    <input type="submit" name="submit" value="Enter!">

    </form>
     
  2. Kodo

    Kodo SNATCHSQUATCH

    asp is not properly configured. Tell your admin that the ASP dll is not properly mapped to the .ASP extension.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds