Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Feb 19th, 2006, 3:45 AM   #1
Heba
Newbie
 
Join Date: Feb 2006
Posts: 18
Rep Power: 0 Heba is on a distinguished road
Help

Hi ..

I am new here and i really need help .. In ASP

This is the form code

<form name="login" method="post" action="confirm.asp">
        <div align="center">          
          <p><br>
            <strong><span class="style16">Please insert your username and password to log into the system. </span></strong></p>
          <table width="312" border="1" cellspacing="3" bordercolor="#000000">
    <tr>
      <td width="92"><span class="style15">Username:</span></td>
      <td width="195" colspan="2"><input type=text name="username" size="25"></td>
      </tr>
    <tr>
      <td><span class="style15">Password:</span></td>
      <td colspan="2"><input type=text name="password" size="25"></td>
      </tr>
    <tr>
      <td colspan="3"><div align="center">
        <input name="Submit" type="submit" value="Submit">
      </div></td>
      </tr>
  </table>
  <br>
        </div>
      </form>

This is the confirm.asp


 <%
DIM strUsername, strPassword
strUsername = Request.Form("username")
strPassword = Request.Form("password")


IF strUsername <> "" AND strPassword <> "" THEN

' Process the form as you like here
' For example enter form to your database or send it via email

ELSE

Response.Write "<p>Please click back on your browser and complete the following fields:</p>"
IF strUsername <> "" THEN
ELSE
Response.Write "<b>• Username</b><br>"
END IF
IF strPassword<> "" THEN
ELSE
Response.Write "<b>• Password</b><br>"
END IF

END IF 
%>

But it doesnt work .. All i want is to check if the username and password match then they willl log in
Heba is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC