/    Sign up×
Community /Pin to ProfileBookmark

How can i do with this ?

I have this form :
————————————————-

<form action=’login.php’ method=’get’ name=”frm”>
<tr><td><b>Email</b> :</td><td><input type=’text’ name=’email’ value='{TVP_EMAIL_TMP}’ size=’26’></td></tr>
<tr><td><b>Password</b> :</td><td><input type=’password’ name=’pwd’ size=15></td></tr>
<tr><td></td><td><input type=’submit’ value=” Login “></td></tr>

</form>
————————————————–

when i fill two textboxes above with my amail “[email protected]” and password “1234567” and press submit button. I receive an URL : “http://localhost/hana/ourstore/customers/[email protected]&pwd=1234567“. With this, everybody can see my password. I want this URL must be : “http://localhost/hana/ourstore/customers/[email protected]&pwd=a0kkOZZmJSu5o“. How can i do with this ?

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsMar 25.2005 — you could submit the form via post that way it wont show in the url

or you can use JavaScript to encrypt the password http://pajhome.org.uk/crypt/md5/
Copy linkTweet thisAlerts:
@etrader_x11Mar 25.2005 — You have to use "post" instead of "get" attribute in the <form> tag
Copy linkTweet thisAlerts:
@tranphuckauthorMar 25.2005 — Yes, i know. I can use "post" instead of "get" in this form. But in some case i have to use "get" instead of "post". I think i can use JS to solve this problem.
Copy linkTweet thisAlerts:
@etrader_x11Mar 25.2005 — You could certanly use JS to encrypt the password, but it may not work in all browsers. Then the encrypted password would still show up in the address bar. Also all your passwords will be stored incrypted in the database(which is a good thing), but it means you would have to unencrypt them in case you need to read them. In general there is almost no reason to use "get" unless you're trying to save the link to the password protected page. It's considered a much better practice to use "post" and maintain a session. You can also add some JS encryption to that.
Copy linkTweet thisAlerts:
@tranphuckauthorMar 25.2005 — Thanks !
×

Success!

Help @tranphuck spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...