| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#1
|
|||||||
|
|||||||
![]() Hello,
Could some one point me in the right direction. I need to validate a few input text fields. I have the need to strip out or prevent apostrophes from being entered by users. Any help would be appreciated. Thanks
__________________
X-Cart version 4.1.9 PHP 5.2.13 Details >> GD bundled (2.0.34 compatible) MySQL server 5.0.77-log MySQL client 5.0.77 Web server Apache/2.2 Operation system Linux Perl not found XML parser (expat) found |
|||||||
#2
|
|||||||
|
|||||||
![]() This works, if you need help implementing it, let me know.
Code:
__________________
xcartmods.co.uk |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks for the help.
Im am getting smarty errors implementing. I am trying to exclude apostrophes from input text in the po field skin1/customer/main/po_payment.tpl Your scripts works fine as stand allone html
__________________
X-Cart version 4.1.9 PHP 5.2.13 Details >> GD bundled (2.0.34 compatible) MySQL server 5.0.77-log MySQL client 5.0.77 Web server Apache/2.2 Operation system Linux Perl not found XML parser (expat) found |
|||||||
#4
|
|||||||
|
|||||||
![]() try this (v4.0.14) - it should remove apostrophes from all four fields.
payment_po.tpl Code:
__________________
xcartmods.co.uk |
|||||||
#5
|
|||||||
|
|||||||
![]() Hi still getting the following error
Fatal error: Smarty error: [in customer/main/payment_po.tpl line 5]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 580) in /home/web/sun/Smarty-2.6.9/Smarty.class.php on line 1088 it is version 4.0.14 Thanks again
__________________
X-Cart version 4.1.9 PHP 5.2.13 Details >> GD bundled (2.0.34 compatible) MySQL server 5.0.77-log MySQL client 5.0.77 Web server Apache/2.2 Operation system Linux Perl not found XML parser (expat) found |
|||||||
#6
|
|||||||
|
|||||||
![]() Code:
USe it like that |
|||||||
#7
|
|||||||
|
|||||||
![]() Thats Awsome!!! It works in realtime..
NIce job. THanks! Rob.
__________________
X-Cart version 4.1.9 PHP 5.2.13 Details >> GD bundled (2.0.34 compatible) MySQL server 5.0.77-log MySQL client 5.0.77 Web server Apache/2.2 Operation system Linux Perl not found XML parser (expat) found |
|||||||
#8
|
|||||||
|
|||||||
![]() yeah, forgot the {literal}{/literal}
Glad it works
__________________
xcartmods.co.uk |
|||||||
|
|||
X-Cart forums © 2001-2020
|