Web Hosting Talk







View Full Version : OSCommerce password issue


AndyG
03-01-2006, 07:24 AM
Hi,

Hope someone can help. This is probably a really simple problem but I can't figure it out.

When I templated my oscommerce store, I somehow changed something in the password field on login.php and register.php where it would show the password in cleartext when it was typed in, instead of ***** it out.

I resolved the issue by putting <input type="password" in that field, like this...

<TR>
<TD CLASS="main"><B><?php echo ENTRY_PASSWORD; ?></B></TD>
<TD CLASS="main"><input type="password" <?php echo tep_draw_password_field('password'); ?></TD>
</TR>

This works in IE but not Firefox, in firefox it shows two input fields for the password and only one is **** out.

Hopefully there's a php/html expert out there that can point me in the right direction.

Thanks.

Andy.

azizny
03-01-2006, 12:11 PM
<INPUT TYPE="TYPE" NAME="NAME" ID="NAME" VALUE="VALUE">


Peace,

Christopher Lee
03-01-2006, 12:50 PM
Howdy:
Since you are using the tep_draw_password_field to create the input field, you don't need to surround in in another tag. That is why the browser is getting confused, because you have one field wrapped in another. And its not really wrapped, because the wrapping field isn't closed properly. Just remove <input type="password" from your above code, and it should work properly. If you want to see what parameters the function accepts, and how it operates, the location is in your catalog in includes/functions/html_output.php

Also, if you are going to be extensively customizing this app, you might want to look at the simple template system mod for osc. It made my life much easier in a few instances.

Hope that helped. -CL-

AndyG
03-01-2006, 01:17 PM
Thanks a lot for both your replies.

I've decided to just get rid of the tep_draw_password_field and just use the basic form tags, like azizny suggested, like this....

<TR>
<TD CLASS="main"><B><?php echo ENTRY_PASSWORD; ?></B></TD>
<TD CLASS="main"><input type="password" NAME="password" ID="password"> </TD>
</TR>

I've tested in all browsers and it seems to be working fine now!


Chris, thanks for that. I'm going to look into installing STS.

Thanks..

Andy

David Copeland
03-18-2006, 08:40 PM
Maybe someone can help us with a small issue.

Our OS site is in the USA. But we had an Australian customer think he was using Australian Dollars instead of our US dollars and got very surprised.

Where in our oscommerce admin can we modify or post that ALL SALES ARE IN US DOLLARS?

Thanks,

David

--------------

PS:

We have need of an oscommerce programmer too.

Our needs include expansion of our existing web sites, plus developing custom mirrored sites for our customers.

David

tech.20@ipiu.org