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