HitByASquirrel
01-02-03, 23:44
| ... is this possible ... and how would it be done? thanks ^_^ |
View Full Version : Passing arrays with HTTP Forms
| ... is this possible ... and how would it be done? thanks ^_^ |
| Hmmm ... Some time ago I've encountered with the following problem: I was needed to generate a page that collects data from the user in variable number of input boxes and then passes all that data to the next page for processing ... I could easily do naming of the input boxes on the first page. So ideally it looked like creating an array of input_boxes[] and giving all input boxes on the first page names like input_box[1], input_box[2], input_box[3] and so on. And then easily process all data using this array. But, HTML forms seems to be forbidding passing array data ... Or am I wrong? P.S.: I've solved the problem using a loop that automatically creates different names for every input_box on the page: input1, input2, input3 .... But of course if I could use array variable instead that would be much more comfortable with further coding ... |