![]() |
Validation
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 |
This works, if you need help implementing it, let me know.
Code:
<head> |
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 |
try this (v4.0.14) - it should remove apostrophes from all four fields.
payment_po.tpl Code:
{* $Id: payment_po.tpl,v 1.8.2.2 2004/08/25 06:06:17 max Exp $ *} |
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 |
Code:
{* $Id: payment_po.tpl,v 1.8.2.2 2004/08/25 06:06:17 max Exp $ *} USe it like that |
Thats Awsome!!! It works in realtime..
NIce job. THanks! Rob. |
yeah, forgot the {literal}{/literal}
Glad it works |
All times are GMT -8. The time now is 12:28 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.