ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Autofilled PHP Forms
Subject:   Problem with using array input names
Date:   2006-07-06 23:47:19
From:   sdave1284
Hey great script! This will save so much time. Now I just have to go back and get all my old scripts to use it. I did run into one problem and I wanted to see if you may have a solution....


If you have input fields like the following:


<input type="text" name="phone1[1]" id="phone1[1]">-
<input type="text" name="phone2[1]" id="phone2[1]">-
<input type="text" name="phone3[1]" id="phone3[1]">


It will not fill in the values. I guess it doesnt recognize how to fill in an array of values with <? echo $_POST['phone1'][1] ?>, etc....


Any ideas how I could modify the script or if its possible??


1 to 1 of 1
1 to 1 of 1