Kurrel Posted June 9, 2008 Share Posted June 9, 2008 Hi PHPers, I've been creating a large form for submission, with several dozen fields. The data is posted to a separate function through form submission, and I've found it easier to sort all the data by making the names of each input into arrays, <input id='inputname".$count."' name='conf[tasks][name]' value='".$taskval["name"]."' style='width:100%;'> for example. However, in creating a calendar date picker, I've had to use 'getElementsByName'. This works fine if the name of the referenced input is not an array, but will not work in the above cited example. Is there a way to make this work, or am I doing something really bad in what I'm doing above? Kurrel, - All smiles. Quote Link to comment Share on other sites More sharing options...
Kurrel Posted June 11, 2008 Author Share Posted June 11, 2008 Fixed. For reference and anyone that may be interested, placing a wait delay before the reference allows the getElementsByName function to reference an arrayed name. Kurrel -All smiles. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.