用户名和PW捕获 [英] Username and PW capture
问题描述
我希望为我的用户名和登录设置一个代码,我会在我的网站上使用它来记录每个登录的人
所以我有一个页面让我们称之为用户.php。
到目前为止我的代码看起来像这样
[HTML]< b>会员登录< / font> ;< / strong>< / b>< br />
< table border =" 0" CELLSPACING = QUOT; 0" cellpadding =" 3">
< tr>
< td nowrap align =" right">
E-邮件:< / td>
< td>< input type =" text"名称= QUOT;电子邮件"值= QUOT;"大小= QUOT; 23" style =" width:165px;">< / td>
< / tr>
< tr>
< td nowrap align =" right">
密码:< / td>
< td>< input type =" password"名称= QUOT;密码"大小= QUOT; 23" style =" width:165px;">< / td>
< / tr>
< tr valign =" top" ;>
< td colspan =" 2" align =" center">
登录< / td> [/ HTML]
所以我想要达到的目标是有人进入在用户名框和密码框中输入内容并点击登录,将其记录到文件中。通过这种方式,我可以观看多少时间,而不是一个柜台,而不是个人...
任何想法?
I am looking to make a code for my User name and login I use on my site where it will record everyone who logs in
So I have a page lets call it user.php.
So far my code looks like this
[HTML] <b>Member Login</font></strong></b><br />
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td nowrap align="right">
E-Mail:</td>
<td><input type="text" name="email" value="" size="23" style="width:165px;"></td>
</tr>
<tr>
<td nowrap align="right">
Password:</td>
<td><input type="password" name="password" size="23" style="width:165px;"></td>
</tr>
<tr valign="top">
<td colspan="2" align="center">
SIGN IN</td>[/HTML]
So the goal I want to reach here is when someone enters something in to the USER NAME box and the PASSWORD box and hit SIGN IN it will log it to a file. This way I can watch how many time and which not almost like a counter but a personal one...
Any ideas?
推荐答案
我现在拥有的CODE的更新......
只需要暗示一些PHP来让记录正常工作......这就是我需要帮助的地方。
[HTML]< html>
< head>
< meta http-equiv ="内容型"含量=" text / html的; charset = windows-1252">
< title>会员登录< / title>
< / head>
< body>
< div align =" center">
< table cellSpacing =" 0" CELLPADDING = QUOT; 10"宽度= QUOT; 800"对齐= QUOT;中心"边界=" 0" id =" table1">
< tr vAlign =" top" bgColor =" #ffffff">
< form id =" theForm"方法= QUOT; POST" action =" - WEBBOT-SELF - ">
<! - webbot bot =" SaveResults" S-Builtin-Fields - >
< td style =" padding-top:5px">
< table cellSpacing =" 0" CELLPADDING = QUOT; 0"宽度= QUOT; 100%QUOT;边界=" 0" id =" table2">
< tr vAlign =" top">
< td width =" 70%">
< table cellSpacing =" 0" CELLPADDING = QUOT 1 QUOT;宽度= QUOT; 300"对齐= QUOT;中心"边界=" 0" id =" table3">
< tr>
< td vAlign =" top" bgColor ="#003399">
< table cellSpacing =" 0" CELLPADDING = QUOT; 5英寸宽度= QUOT; 100%QUOT;边界=" 0" id =" table4">
< tr>
< td vAlign =" top"对齐= QUOT;中间" bgColor =" #ffffff">
< div align =" center">
< strong>< font color ="#003399" >会员
登录< / font>< / strong>< br>
& nbsp;< table cellSpacing =" 0" CELLPADDING = QUOT; 3英寸边界=" 0" id =" table5">
< tr>
< td noWrap align =" right">
E-邮件:< / td>
< td>
< input style =" width:165px"大小= QUOT; 23" name =" email">< / td>
< / tr>
< tr>
< td noWrap align =" right">
密码:< / td>
< td>
< input style ="宽度:165px类型= QUOT;密码"大小= QUOT; 23" value name =" password">< / td>
< / tr>
< tr vAlign =" top">
< td align =" middle" colSpan =" 2">
< br>
& nbsp;< table cellSpacing =" 0" CELLPADDING = QUOT; 0"宽度= QUOT; 100%QUOT;边界=" 0" id =" table6">
< tr>
< td vAlign =" bottom"对齐= QUOT;中间"宽度= QUOT; 142" height =" 30"& nbsp;< / td>
< td vAlign =" bottom" width =" 40">
< input id =" loginbutton" onclick =" return doSubmit();"类型= QUOT;图像" alt ="登录 SRC =" HTTP://x.myspace.com/images/button_login_main.gif" name =" loginbutton">< / td>
< / tr>
< / table>
< / td>
< / tr>
< / table>
< / div>
< ; / td>
< / tr>
< / table>
< / td>
< / tr>
< / table>
< / td>
< / tr>
< / table>
< / td>
< / form>
< / tr>
< / table>
< / div>
< / body>
< / html> [/ HTML]
UPDATE of the CODE I have now...
just need to imply some PHP to get the record working.. thats what I need some help with.
[HTML]<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Member Login</title>
</head>
<body>
<div align="center">
<table cellSpacing="0" cellPadding="10" width="800" align="center" border="0" id="table1">
<tr vAlign="top" bgColor="#ffffff">
<form id="theForm" method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" S-Builtin-Fields -->
<td style="padding-top: 5px">
<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table2">
<tr vAlign="top">
<td width="70%">
<table cellSpacing="0" cellPadding="1" width="300" align="center" border="0" id="table3">
<tr>
<td vAlign="top" bgColor="#003399">
<table cellSpacing="0" cellPadding="5" width="100%" border="0" id="table4">
<tr>
<td vAlign="top" align="middle" bgColor="#ffffff">
<div align="center">
<strong><font color="#003399">Member
Login</font></strong><br>
<table cellSpacing="0" cellPadding="3" border="0" id="table5">
<tr>
<td noWrap align="right">
E-Mail:</td>
<td>
<input style="width: 165px" size="23" name="email"></td>
</tr>
<tr>
<td noWrap align="right">
Password:</td>
<td>
<input style="width: 165px" type="password" size="23" value name="password"></td>
</tr>
<tr vAlign="top">
<td align="middle" colSpan="2">
<br>
<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table6">
<tr>
<td vAlign="bottom" align="middle" width="142" height="30"> </td>
<td vAlign="bottom" width="40">
<input id="loginbutton" onclick="return doSubmit();" type="image" alt="Log In" src="http://x.myspace.com/images/button_login_main.gif" name="loginbutton"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</div>
</body>
</html>[/HTML]
Heya,Chrisjc。
您应该可以同时执行此操作您正在登录用户(这也是一个非常好的主意b / c然后您可以验证用户是否使用有效会话登录而不是'劫持现有会话)。
我并没有看到页面上的FORM标签的任何地方。什么脚本将用户登录?
Heya, Chrisjc.
You should be able to do this at the same time that you are logging the User in (this is also a very good idea b/c then you can verify that the User is logged in with a valid session and not ''hijacking'' an existing session).
I don''t see a FORM tag on the page anywhere. What script will be logging the User in?
Heya,Chrisjc。
你应该能够在您登录用户的同时执行此操作(这也是一个非常好的想法b / c然后您可以验证用户使用有效会话登录而不是''劫持''现有会议)。
我在页面上看不到任何形式的FORM标签。将用户登录的脚本是什么?
Heya, Chrisjc.
You should be able to do this at the same time that you are logging the User in (this is also a very good idea b/c then you can verify that the User is logged in with a valid session and not ''hijacking'' an existing session).
I don''t see a FORM tag on the page anywhere. What script will be logging the User in?
啊,很高兴你看到为什么我喜欢这样做..
这里是我的问题。我在登录之前从未登录过..
我一直使用我的服务器。 I.E.我只是将用户/ pw放在VIA我的服务器选项的文件夹中,它会提示用户名/ PW默认框VIA窗口或用户正在使用的任何东西来查看该网站。
所以我想让它看起来像FANCY并学习它..
所以我不确定如何遇到这个但我想从它开始记录用户名和pw是最好的起点???
所以我的目标是:
获取用户& PW字段用于将输入的文本记录到文件中或将其发送到系统电子邮件。然后设置页面,它将允许访问????
ahh glad you see why Id like to do this..
well here is my issue. I have never made a login before ON A PAGE..
I have always used my server. I.E. I would just put a user / pw on a folder VIA my server options and it would prompt the USER NAME / PW default box VIA windows or whatever the user is using to view the site.
So I would like to just make this to look FANCY and to learn it..
So I am unsure over how to come across this but I thought starting with it recording the username and pw is the best place to start???
So goal in my mind is to:
Get User & PW field to log entered text in to a file or send it to the system e-mail. Then setup the page it will allow access to????
这篇关于用户名和PW捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!