Xiwl
05-05-2007, 02:44 PM
U have this in an echo.
<form action=\"bank.php\" method=\"post\" autocomplete=\"off\">
<table><tbody><tr><td>Username:</td><td>
<input type=\"text\" maxlength=\"12\" value=\"\" name=\"user\" size=\"20\"></td></tr><tr><td>
Password:</td><td>
<input type=\"password\" maxlength=\"20\" value=\"\" name=\"pass\" size=\"20\"></td></tr><tr><td> </td><td align=\"center\">
<input style=\"background: rgb(77, 66, 46) url('images/brownback.jpg') 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: white\" type=\"submit\" class=\"b\" value=\"Login to Admininistration Panel\" size=\"20\"></td></tr></tbody></table>
<div>
</div>
</form>
How to i set so that when they either click the submit button it sets a cookie with the user + pass in, or that on the next page it sets a cookie with the user + pass in it from post data, and how do i retrive the information from a cookie sort of thing so say if i typed Ryan in the username field and password in the pass field, then it sets the cookie with Ryan + password in, how do i make a page where it shows the username + pass from the cookie.
thnx
<form action=\"bank.php\" method=\"post\" autocomplete=\"off\">
<table><tbody><tr><td>Username:</td><td>
<input type=\"text\" maxlength=\"12\" value=\"\" name=\"user\" size=\"20\"></td></tr><tr><td>
Password:</td><td>
<input type=\"password\" maxlength=\"20\" value=\"\" name=\"pass\" size=\"20\"></td></tr><tr><td> </td><td align=\"center\">
<input style=\"background: rgb(77, 66, 46) url('images/brownback.jpg') 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: white\" type=\"submit\" class=\"b\" value=\"Login to Admininistration Panel\" size=\"20\"></td></tr></tbody></table>
<div>
</div>
</form>
How to i set so that when they either click the submit button it sets a cookie with the user + pass in, or that on the next page it sets a cookie with the user + pass in it from post data, and how do i retrive the information from a cookie sort of thing so say if i typed Ryan in the username field and password in the pass field, then it sets the cookie with Ryan + password in, how do i make a page where it shows the username + pass from the cookie.
thnx