Re: New to PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jary Nubla wrote:

> you can use javascript to validate your forms before submitting the 
> page. an example is..
>
> <input type="button" value="Submit" onclick="validate_form()">
>
> then in your header section,
>
> function validate_form() {
>   if (document.frmName.fieldName.value == "")
>     alert('Please enter value for..');
> }
>
Good idea but some users block scripting so you will need to test if 
javascript is enabled or tell the user that javascript must be allowed 
for your site...

Fun isn't it!

Best wishes

Andy Clark


PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux