[PHP] RE :[PHP] Multiple Entry SELECT and JavaScript interaction
>In order to allow multiple entry on a form object, the name of the >form has to end with the brackets [], but then when I do that I can't refer >to it from within JavaScript because as a variable name it becomes illegal. >I have to be able to refer to the SELECT object to change its contents based >on another form object. Instead of referring in javascript to the select by name refer by reference ie: document.form[0].elements[1].selected Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Multiple Entry SELECT and JavaScript interaction
I have a curious problem that I don't have a clue how to solve that's probably simple but I can't find it documented anywhere. It might be the first PHP-induced limitation I've run into... In order to allow multiple entry on a form object, the name of the form has to end with the brackets [], but then when I do that I can't refer to it from within JavaScript because as a variable name it becomes illegal. I have to be able to refer to the SELECT object to change its contents based on another form object. I've tried all kinds of things to work around this, but I'm stuck. Any ideas out there? Thanks, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]