I have a site which uses two pages. The first page generates an HTML
form with multiple rows which is then POSTed to the second page. Sometimes
on the first page I have to create multiple rows of INPUT fields. To allow
a dynamic number of INPUT fields (say someone wants to add seven new
One solution $HTTP_POST_VARS['input_field'.$inc];
- Original Message -
From: Brian Ricks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 3:08 PM
Subject: [PHP] Iterating varibales
I have a site which uses two pages. The first page generates an HTML
form
Actually, if you make the names in the form resemble array variables,
this can be greatly simplified.
Something similar to the following might be what you are looking for:
input type=text name=item[0]
input type=text name=item[1]
when the form is passed to the next script, there will be a
3 matches
Mail list logo