Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Easy one - apache or PHP prob??

0 views
Skip to first unread message

Jason K

unread,
Jul 17, 2002, 1:37:46 AM7/17/02
to
i have written a chuck of php code that asks for a username and password
using an html form. By the way i am new to all of this.... the prob is
that when i submit the username and pass, the values are visible in clear
text in the address bar of the browser! i don't like this! i though this
line should have taken care of this....

echo "<input name=pass type=password size=15><BR><BR>";

anyway.. php ver 4.2.0 apache 2.0.36

I want to pass the username and password to the next page which queries my
user database.... should i use session register to do that?

thanks a mil, it is driving me nuts!

jason


Jeff Walter

unread,
Jul 17, 2002, 2:07:54 AM7/17/02
to
Jason,
In your <form action=... change method to "PUT"

Jeff Walter


Lars B. Jensen, LJWeb GmbH

unread,
Jul 17, 2002, 3:05:10 AM7/17/02
to
that'll be a "post", not "put"

---
Lars B. Jensen, CEO and Founder
LJ Webnologics

E-Mail : lars....@ljweb.com
Web : http://www.ljweb.com


"Jeff Walter" <je...@jeffs-place.org> wrote in message
news:_Q7Z8.65136$uw.3...@rwcrnsc51.ops.asp.att.net...

Jeff Walter

unread,
Jul 17, 2002, 3:22:57 AM7/17/02
to
Lars B. Jensen wrote:
> that'll be a "post", not "put"

LMAO! Sorry about that...I had the right idea, just the wrong word.

Jeff Walter


Jason K

unread,
Jul 17, 2002, 11:11:33 AM7/17/02
to
Excellent i feel like a dope!

I was thinking that it wouldn't pass variables if i did that... is that
true?

"Jeff Walter" <je...@jeffs-place.org> wrote in message

news:lX8Z8.9475$_51....@rwcrnsc52.ops.asp.att.net...

Daerion

unread,
Jul 17, 2002, 1:40:19 PM7/17/02
to
Heh, I reckon you're passing the variables using the GET method (which
appears to be the default method for any form).
Using the POST method the values the user entered won't be visible in the
Adress bar of the browser:

<form method="post" name="formname" action="scriptname.php">


--
- Daerion
-- http://www.daersys.net
-- webmaster at daersys dot net

"Jason K" <admi...@eastway.net> schrieb im Newsbeitrag
news:uja0gjc...@corp.supernews.com...

Daerion

unread,
Jul 17, 2002, 1:42:14 PM7/17/02
to
Look at me, I'm too fking stupid to read answers before posting one myself.

Anyway, using the POST method WILL pass variables, whoever told you it won't
isn't exactly an 'expert' when it comes to forms, heh.

--
- Daerion
-- http://www.daersys.net
-- webmaster at daersys dot net

"Jason K" <admi...@eastway.net> schrieb im Newsbeitrag
news:uja0gjc...@corp.supernews.com...

Ray Taylor

unread,
Jul 17, 2002, 2:28:13 PM7/17/02
to
On Wed, 17 Jul 2002 11:11:33 -0400, Jason K wrote:

> Excellent i feel like a dope!
>
> I was thinking that it wouldn't pass variables if i did that... is that
> true?
>

No, that's not true. Post "posts" the variables to the action named in
the form tag.
Any form elements that have a name get posted.

--
- Ray
- I have been wrong before. A lot.
- Remove _remove_ to reply by email.

0 new messages