Guest Posted May 21, 2004 Posted May 21, 2004 When customer checkout, the billing address is show this error: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/sharon/public_html/osc/includes/functions/general.php on line 42 I want to know who is fixed this problem?! Thanks~
Guest Posted May 21, 2004 Posted May 21, 2004 When the customer edit the address with ==> ; ' it will be appear this error. How can we skip these symbol?! like replace function in asp. How about php?! Can it do it?! thx
Acheron Posted May 21, 2004 Posted May 21, 2004 something along the lines of ... address='".addslashes(htmlspecialchars($address))."'
Guest Posted May 21, 2004 Posted May 21, 2004 something along the lines of ... address='".addslashes(htmlspecialchars($address))."' Is it means edit all the code with this ?!
Guest Posted May 21, 2004 Posted May 21, 2004 I already copy the original file to the folder. When I edit the customer address book. It must be occur this problem. why?!
Acheron Posted May 21, 2004 Posted May 21, 2004 Well, for example if you had: $thisvariable ... change it to something like ... $thisvariable='".addslashes(htmlspecialchars($thisvariable))."' This feature may already be built into certain areas?? Add a new product in admin and then edit and it often adds those damn slashes. ;)
Guest Posted May 21, 2004 Posted May 21, 2004 Thanks~ But I may be fixed it. I downloaded the new oscommerce file in oscommerce website. http://www.oscommerce.com/solutions/downloads In /catalog/includes/modules/address_book_details.php use it replace my file. Then now can be run it correctly. :lol:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.