By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,028 Members | 1,869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,028 IT Pros & Developers. It's quick & easy.

Need help with writing easy script

P: n/a
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

Jan 25 '07 #1
Share this Question
Share on Google+
13 Replies


P: n/a
Rik
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?
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
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. *
Jan 25 '07 #2

P: n/a
thetechturf.com wrote:
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
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
==================
Jan 25 '07 #3

P: n/a
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, 25 Jan 2007 14:19:23 +0100, thetechturf.com

<BryanLBurkhol...@gmail.comwrote:
Ok, here's the deal. I need a script written that will:Aha. What have you tried so far?
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:sec...@thetechturf.co...h38Text-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. *
Jan 25 '07 #4

P: n/a
I already have a protected directory, and this will be just like
entering it in the pop-up box.

On Jan 25, 9:19 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
thetechturf.com wrote:
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:sec...@thetechturf.com/members/sgh38Very 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.
jstuck...@attglobal.net
==================
Jan 25 '07 #5

P: n/a
I already have a protected directory, and this will be just like
entering it in the pop-up box.

On Jan 25, 9:19 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
thetechturf.com wrote:
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:sec...@thetechturf.com/members/sgh38Very 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.
jstuck...@attglobal.net
==================
Jan 25 '07 #6

P: n/a
I already have a protected directory, and this will be just like
entering it in the pop-up box.

On Jan 25, 9:19 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
thetechturf.com wrote:
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:sec...@thetechturf.com/members/sgh38Very 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.
jstuck...@attglobal.net
==================
Jan 25 '07 #7

P: n/a
I already have a protected directory, and this will be just like
entering it in the pop-up box.

On Jan 25, 9:19 am, Jerry Stuckle <jstuck...@attglobal.netwrote:
thetechturf.com wrote:
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:sec...@thetechturf.com/members/sgh38Very 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.
jstuck...@attglobal.net
==================
Jan 25 '07 #8

P: n/a
Thanks for your help guys, I got it. I found a script on the web that I
modified to fit my needs. Thanks again.

Jan 25 '07 #9

P: n/a
..oO(thetechturf.com)
>I already have a protected directory, and this will be just like
entering it in the pop-up box.
Sending user credentials is not allowed in HTTP URLs.

Micha
Jan 25 '07 #10

P: n/a
"thetechturf.com" <Br**************@gmail.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
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

Certainly. We're here to do your work for you. Would you like me also to
wipe your bottom and cut your food for you?

Here's a script you can tweak:
<?php
for($i=0;$i<100;$i++)
echo 'I will not make other people do my work!<br/>';
?>

Glad I could help.

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
Jan 26 '07 #11

P: n/a
Jerry Stuckle wrote:
thetechturf.com wrote:
>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

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).
Not only that, but I'm pretty sure it no longer works in the more recent
browser versions.

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).
--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Jan 26 '07 #12

P: n/a
On Jan 25, 11:36 pm, "Kimmo Laine" wrote:
Here's a script you can tweak:
<?php
for($i=0;$i<100;$i++)
echo 'I will not make other people do my work!<br/>';
?>

Glad I could help.
Haha, lol. I'll have to remember that one.

On Jan 25, 11:41 pm, "Chris Hope" wrote:
Not only that, but I'm pretty sure it no longer works in the more recent
browser versions.
I had no idea. I haven't encountered much URLs like that in the first
place, but out of curiosity, I tested with Firefox 2 and Opera 9, and
it seems to work. Maybe in IE7?

--
Curtis

Jan 26 '07 #13

P: n/a
<comp.lang.php>
<Kimmo Laine>
<Fri, 26 Jan 2007 09:36:10 +0200>
<Mb******************@reader1.news.saunalahti.fi >
Would you like me also to wipe your bottom and cut your food for you?
Only if you promise to wash your hands after wipeing my botty :-)
--
www.phptakeaway.co.uk
(work in progress)
Jan 26 '07 #14

This discussion thread is closed

Replies have been disabled for this discussion.