需要帮助编写简单的脚本 [英] Need help with writing easy script

查看:58
本文介绍了需要帮助编写简单的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,这是交易。我需要一个编写的脚本:


使用常规的HTML页面和表单(我计划将这个放在一个小框中

我的所有HTML页面)提交信息:

用户名和密码

然后它将检查用户名,如csv表(或txt

文件,或MySQL)并查看目的地的位置。

最后它会转到以下网址:
http://用户名:密码@目的地


因此,如果我们让John Doe访问我的网站,他会输入:

用户名:johndoe

密码:secret

然后它检查表并看到用户johndoe有一个

目的地thetechturf.com/members/shg38

最后,它将他发送到页面:
http:// johndoe:se****@thetechturf.com/members/sgh38

Ok, here''s the deal. I need a script written that will:

Use a regular HTML page and form (I plan to have this in a small box on
all my HTML pages) to submit the information:
Username and Password
It will then check the username against like a csv table (or a txt
file, or MySQL) and see where the destination is.
Last of all it would go to the following url:
http://username:password@destination

So if we have John Doe visit my site he types in:
Username: johndoe
Password: secret
It then checks the table and sees that the user johndoe has a
destination of "thetechturf.com/members/shg38
Last of all it sends him to the page:
http://johndoe:se****@thetechturf.com/members/sgh38

推荐答案

2007年1月25日星期四14:19:23 +0100,thetechturf.com

< ; Br ************** @ gmail.comwrote:
On Thu, 25 Jan 2007 14:19:23 +0100, thetechturf.com
<Br**************@gmail.comwrote:

好​​的,这是交易。我需要一个写的脚本:
Ok, here''s the deal. I need a script written that will:



啊哈。到目前为止你尝试了什么?

Aha. What have you tried so far?


使用常规的HTML页面和表格(我打算将这个放在一个小盒子上

all我的HTML页面)提交信息:

用户名和密码

然后它将像csv表一样检查用户名(或者txt

文件或MySQL)并查看目的地的位置。

最后它会转到以下网址:
http:// username:password @ destination

因此,如果我们让John Doe访问我的网站,他会输入:

用户名:johndoe

密码:secret

然后检查表并看到用户johndoe有一个

目的地thetechturf.com/members/shg38

最后,它将他发送到页面:
http:// johndoe:se **** @ thetechturf .com / members / sgh38



文本文件: http://www.php.net/fgetcsv

数据库: http://www.php.net/mysql

重定向: http://www.php.net/header

-

Rik Wasmus

*我正在测试几个新的新闻阅读器。请原谅

可能的错误和奇怪的内容。 *

Text-files: http://www.php.net/fgetcsv
Databases: http://www.php.net/mysql
Redirecting: http://www.php.net/header
--
Rik Wasmus
* I''m testing several new newsreaders at the moment. Please excuse
possible errors and weird content. *


thetechturf.com写道:
thetechturf.com wrote:

好​​的,这是交易。我需要一个编写的脚本:


使用常规的HTML页面和表单(我计划将这个放在一个小框中

我的所有HTML页面)提交信息:

用户名和密码

然后它将检查用户名,如csv表(或txt

文件,或MySQL)并查看目的地的位置。

最后它会转到以下网址:
http://用户名:密码@目的地


因此,如果我们让John Doe访问我的网站,他会输入:

用户名:johndoe

密码:secret

然后它检查表并看到用户johndoe有一个

目的地thetechturf.com/members/shg38

最后,它将他发送到页面:
http:// johndoe:se****@thetechturf.com/members/sgh38



非常不安全!它不仅以纯文本形式发送用户ID /密码,它还可以将其留在导航栏中供其他人阅读(取决于

浏览器)。


此外,如果您将它们发送到另一个站点,

用户ID:密码组合可能无法正常工作 - 它只适用于您

使用网络服务器身份验证,但并非总是如此。


如果它是您网站上发送给他们的另一个页面,则有

更好的方法(即会话变量)。


-

============== ====

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================

Very insecure! It not only sends the userid/password in plain text, it
can leave it in the navigation bar for others to read (depending on the
browser).

Additionally, if you''re sending them to another site, the
userid:password combination may not work - it only works when you''re
using webserver authentication, and not always then.

And if it is another page on your site you''re sending them to, there are
better ways to do it (i.e. session variables).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这是交易,

我对PHP几乎一无所知。我可以调整它们,但这是关于

它。我可以做一些flash,我很擅长HTML,并且知道VB.net,

但不是PHP,珍珠,python等。链接有帮助,但是,我还需要更多的方向。你可以进行包含这些

功能的baisc编程,然后我修改它吗?这将有很大帮助。您可以在 www.thetechturf.com 上查看我的

网站


1月25日上午8:38,Rik< luiheidsgoe ... @ hotmail.comwrote:
Here''s the deal,
I know next to nothing about PHP. I can tweak them, but that''s about
it. I can do some flash, am proficent in HTML, and kind of know VB.net,
but not PHP, pearl, python, ect. The links help, but, I need some more
direction. Can you do baisc programing that incorporates these
features, and I modify it? That would help immensely. You can view my
site at www.thetechturf.com

On Jan 25, 8:38 am, Rik <luiheidsgoe...@hotmail.comwrote:

On Thu ,2007年1月25日14:19:23 +0100,thetechturf.com


< BryanLBurkhol ... @ gmail.comwrote:
On Thu, 25 Jan 2007 14:19:23 +0100, thetechturf.com

<BryanLBurkhol...@gmail.comwrote:

好​​的,这是交易。我需要写一个脚本:Aha。你都尝试了些什么?
Ok, here''s the deal. I need a script written that will:Aha. What have you tried so far?


使用常规的HTML页面和表单(我计划将这个放在一个小方框中

我的所有HTML页面)提交信息:

用户名和密码

然后它将检查用户名,如csv表(或txt

文件,或MySQL)并查看目的地的位置。

最后它会转到以下网址:
http://用户名:密码@目的地


因此,如果我们让John Doe访问我的网站,他会输入:

用户名:johndoe

密码:secret

然后检查表并看到用户johndoe有一个

目的地thetechturf.com/members/shg38

最后,它将他发送到页面:
http:// johndoe:sec ... @ thetechturf.co ... h38文本文件: http://www.php.net/fgetcsv



数据库: http://www.php.net/mysql

重定向: http://www.php.net/header

-

Rik Wasmus

*我正在测试几个新的新闻阅读器。请原谅

可能的错误和奇怪的内容。 *

Databases: http://www.php.net/mysql
Redirecting: http://www.php.net/header
--
Rik Wasmus
* I''m testing several new newsreaders at the moment. Please excuse
possible errors and weird content. *


这篇关于需要帮助编写简单的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆