Re: JavaScript, PHP and HTML
| From: | Juan | Date: | Fri, 02 Feb 2001 11:24:45 +0000 |
| Subject: | Re: JavaScript, PHP and HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37815@lists.php.net to get a copy of this message | ||
ACC> But know I want to but an JavaScript to verify if a date/hour is a valid
ACC> format for MySQL.
ACC> Where should I put the JavaScript? In .php or .html?
Well you could actually put it in both, although it is easier to put
it the html since it avoids too much embeding.
ACC> Or I should check the date and hour on .php script?
It also depends.
The good thing about checking it with javascript is
that you are on the client side, therefore there are no query sent to
your server. If you use Javascript that also means the user doesn't
get sent to a page checking validity.
If you check it with Php that means the information is submitted to
the page and you treat it afterwards.
_______________________________________
Massuelles Jean-Baptiste(Juan@acomme.fr)
Société A Comme...
Tel : 03 80 700 702