By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,082 Members | 2,108 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,082 IT Pros & Developers. It's quick & easy.

[solved] Ajax script help

P: 40
Hi I have a problem with an auto fill form script that is on dhtmlgoodies, I wish to fill out a form that is produced using a PHP array.

My form input boxes, are named hole[1], hole[2] etc

Within the PHP side of the script I have the following line:

[PHP] echo "formObj.hole[1].value = '".$inf["hole1"]."';\n"; [/PHP]

but when I then complete the designated field to start the auto fill I recieved the following error message

formObj.hole.1is null or not an object.

can anyone help please?

if I change the formObj to a field such as "name" everything works fine.

Thank You in advance for your help.


May 23 '07 #1
Share this Question
Share on Google+
1 Reply

P: 40
All just to let you know that I have solved the problem I amended the above code to:

May 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.