Re: [SMARTY] SmartyValidate Javascript?
| From: | Marcus Bointon | Date: | Tue, 10 May 2005 16:57:10 +0000 |
| Subject: | Re: [SMARTY] SmartyValidate Javascript? | ||
| References: | 1 2 3 4 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12604@lists.php.net to get a copy of this message | ||
On 10 May 2005, at 17:13, Alain Williams wrote:
Er... that's exactly what I meant. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.ukWell, no-one said it was easy... but you don't have to do it for every browser, because it can always fall back to server-side validation (which you must do anyway when JS is unavailable). Client- side validation is better for both the visitor (much faster) and the server (reduced load). I've had a look at formsess (which does seemClient side is nice because it makes things better for the user. Server side IS A MUST -- you CANNOT trust the end user machine, you HAVE to do server side validation even if it has been checked at the client end. Think of the cost of getting cr*p data into your database/... because something might not have been checked. A browser may have javascript switched off or be in the hands of someone malicious who wants to break your application.