Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Login validation help
Old 02-19-2006, 08:48 AM Login validation help
Heba's Avatar
Average Talker

Posts: 28
Trades: 0
Hi ..
I am new here and i really need help .. In ASP
This is the form code
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

Code:
 <%
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
View Public Profile
 
 
Register now for full access!
Old 02-19-2006, 04:04 PM Re: Login validation help
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.candsdesign.co.uk/article.../show-code.asp

see the function CheckUser()
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-20-2006, 12:03 AM Re: Login validation help
Heba's Avatar
Average Talker

Posts: 28
Trades: 0
Thank you very much
Heba is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Login validation help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26674 seconds with 12 queries