Re: [PHP] javascript, forms and php

2005-12-03 Thread Unknown Unknown
DO NOT validate anything important with javascript, the user can easily bypass the javascript by creating his own HTML page or disabling javascript on his browser. if you *Absouloutly* need to use javascript, check the last page the browser visited with Javascript or PHP and either allow or deny ac

Re: [PHP] javascript, forms and php

2005-12-01 Thread Brent Baisley
You should have posted this to a javascript board, it has nothing to do with PHP. That said, if the form field name contains special characters, like [], you can reference it like this: document.formname.elements['checkbox1[]']. Use the elements[] reference style. On Dec 1, 2005, at 12:42 PM

[PHP] javascript, forms and php

2005-12-01 Thread Kelly Meeks
Hi all, I'm hoping someone can help me with this problem. I'm using javascript for some client side field validation in a form (method=post) that gets managed via php. This particular form makes extensive use of checkboxes. I've always like how when named properly (field name of "check