By exxocette on
I have 5 form in a page with 1 submit button in the last form. if i click the submit button it will send all form, start from the first form.
it must be send from the first form, could not random send.
please help me, im newbie on drupal. thanks
Comments
You need to give each submit
You need to give each submit button a different identifier. For example:
Form 1: $form['submit1'] = array('#type' => 'submit', '#value' => t('Submit 1'),)Form 2: $form['submit2'] = array('#type' => 'submit', '#value' => t('Submit 2'),)Contact me to contract me for D7 -> D10/11 migrations.
there is only 1 submit button
there is only 1 submit button on the last form, the other form dont have button.
I don't understand what you
I don't understand what you are asking then.
Contact me to contract me for D7 -> D10/11 migrations.
ah ok, i will give you real
ah ok, i will give you real example.
I got a page with 4 form. it cannot be change. always like this
there are 3 form without submit, actually they have button but i hide them becouse i want 1 submit button, not 4.
this is form 1st html, 2 other have samiliar script with this one :
and this the last form html :
is it imposible to send them once time ? i don't any idea to proccess them :(
The HTML doesn't really help.
The HTML doesn't really help. Can you show the function that you are using to generate the form?
Contact me to contract me for D7 -> D10/11 migrations.
actually i dont know where
actually i dont know where the function to create this form. I just know the result ^ ^.
you can imagine 4 form :
submit button only in form4, on the others form the button has hidden, becous i just want 1 button.
it easy for me to submit those form once time with codeigniter, but for drupal, i dont have idea.
I think it must use javascript or ajax to submit them once time
Sorry, unless you can figure
Sorry, unless you can figure out where the form is being generated from, there isn't really any way to help you.
Contact me to contract me for D7 -> D10/11 migrations.