You are here: Re: PHP validation instead of Javascript? « All PHP « IT news, forums, messages
Re: PHP validation instead of Javascript?

Posted by Dennis de Wit on 09/01/06 11:28

Advo wrote:
> Dennis de Wit wrote:
>> David Quinton wrote:
>>> On 1 Sep 2006 03:59:30 -0700, "Advo" <max_mischief@hotmail.com> wrote:
>>>
>>>> Basically our new dedicated server doesnt support Javascript, but i
>>>> need to still be able to validate forms.
>>> Javascript is executed browser-side.
>>> I'm no expert, but I've never come across a *server* that prevents you
>>> from having javascript within your HTML.
>> I am an expert... and i have to agree :)
>>
>> Your server DOES support JS.
>
> of course lol..
>
> its been a long morning :p
>
> the problem must lie somewhere else..
>
>
> but, now ive got the two options, would you stick with JS?
>

I would check the values using JS first, and check again later with PHP.
As users can turn of JS, it's not save to rely on it.

On the other hand, warnings produced with JS, when used the right way,
are more user-friendly than HTML messages.

So... I'd use 'em both ;)

Dennis

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация