Jump to content

Process a dynamically generated form using arrays


poleposters

Recommended Posts

Hi,

 

I need to process a dynamically generated form.

 

Its a list of items with an item_id and an editable shipment_id in a text field.

 

I've been giving each text input the name field[] so that I can process the form on another page using this code

	

$shipment_id=$_POST['field'];

	$n=count($shipment_id);
   
   		for($i=0;$i<$n;$i++)
	{
	 Do something
	}

 

Except now I realise I can't use the item_id for each field.

 

Is there a way around this?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.