By Keith Hurst on
Hi,
drupal 6 user, needing a little insight...
I have a form which will have many buttons...
The final button should submit the form to an external URL...
The other individual buttons on the page should invoke their own event handler...
The basics of the form look like this....
$form[ 'button_number1' ] = array(
'#type' => 'button',
'#value' => 'Button 1',
'#name' => 'button1',
'#submit' => array( 'fn_button1' ),
) ;
$form[ 'button_number2' ] = array(
'#type' => 'button',
'#value' => 'Button 2',
'#name' => 'button2',
'#submit' => array( 'fn_button2' ),
) ;
.
.
.
$form[ '#action' ] = 'http://www.someexternalsite.com/process' ;
No matter which button I press the someexternalsite url is executed, not the individual submit handlers for the buttons.
What am I missing here....
Thanks,
Keith
Comments
Anyone ? Ta, KH
Anyone ?
Ta,
KH
Scratch this the action is
Scratch this the action is over-riding the individual sumbit handlers, they'll never get called...
So let's start off one a new tack.... new question...
KH