Jump to content


Photo

Password field output is in lower case


  • Please log in to reply
4 replies to this topic

#1 Tonax

Tonax
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 09 October 2006 - 11:35 PM

I'm working on a membership script and my password field is converting uppercase chars into lowercase. Never had this problem occur before...

<table width="90%" border="0" cellspacing="1" cellpadding="0">
  <tr>
    <td valign="top"><form enctype="multipart/form-data" name="login" method="post" action="http://www.tonax.net/members/login.php">
        <input name="user" type="text" id="user" class="forms" value="username" size="10"></td>
<td valign="top" align="center">
  <input type="checkbox" name="cookies" value="cookies"><label><font size="-2">remember me</font></label>
  </td>
  </tr>
  <tr>
    <td>
<input name="pass" type="password" class="forms" size="10"></td>
 <td align="center"><input type="image" name="Submit" src="http://tonax.net/images/go.gif"></td></tr>
</table></form>


#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 10 October 2006 - 01:14 PM

are you sure????

perhasp you have some php code that is doing this. Don't think the browser (without javascript) is capable of changing a string to lower case before its sent to a processing script.
follow me on twitter @PHPsycho

#3 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 10 October 2006 - 01:27 PM

Could you put up an example script where the page defined in the action attribute is just a php script with print_r($_POST) in it?

#4 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 10 October 2006 - 03:44 PM

Yeah, nothing is "converting" all on its own.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#5 Tonax

Tonax
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 October 2006 - 05:22 AM

Well I fixed it but not sure why this worked. I had the script running before and this problem started one day. I put in $pass=$_POST['pass']; and it worked fine.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users