[support] multiple buttons with same #value D5

Ivan Sergio Borgonovo mail at webthatworks.it
Wed Mar 25 15:55:53 UTC 2009


On Wed, 25 Mar 2009 16:32:10 +0100
Ivan Sergio Borgonovo <mail at webthatworks.it> wrote:

I had to resort to some Web 1.5 techniques

 	$form['add'][$id]=array(
 //		'#type'=>'button',
 		'#type'=>'submit',
		'#name'=>$id.'-add',
 		'#value'=>t('Add'),
 	);
 }

roll over qty

foreach($form_values['qty']...
  if($form_values[$key.'-add']==t('Add');

Did things get better in D5+?

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the support mailing list