Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/86546172839346176
deleted 5 characters in body; edited title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

multiple Multiple forms on single page?

Is it possible to put multiple forms on a single page? This is for D6.

I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field for the coupon code and its own submit button. The first form works okay; however the second form's hidden values seem to be overridden by the first form's.

I'm using hook_alter to alter the second form to make it different, but it still has the same form_id as the first. Is this what's causing my problems, or do I need to look/think somewhere else?

Edit: the The two forms have the same form_idvalues for "form_id" and form_token"form_token," but different form_build_idsvalues for "form_build_id."

multiple forms on single page?

Is it possible to put multiple forms on a single page? This is for D6.

I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field for the coupon code and its own submit button. The first form works okay; however the second form's hidden values seem to be overridden by the first form's.

I'm using hook_alter to alter the second form to make it different, but it still has the same form_id as the first. Is this what's causing my problems, or do I need to look/think somewhere else?

Edit: the two forms have the same form_id and form_token, but different form_build_ids.

Multiple forms on single page?

Is it possible to put multiple forms on a single page?

I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field for the coupon code and its own submit button. The first form works okay; however the second form's hidden values seem to be overridden by the first form's.

I'm using hook_alter to alter the second form to make it different, but it still has the same form_id as the first. Is this what's causing my problems, or do I need to look/think somewhere else?

The two forms have the same values for "form_id" and "form_token," but different values for "form_build_id."

added some information
Source Link
user1359
  • 3.9k
  • 10
  • 60
  • 103

Is it possible to put multiple forms on a single page? This is for D6.

I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field for the coupon code and its own submit button. The first form works okay; however the second form's hidden values seem to be overridden by the first form's.

I'm using hook_alter to alter the second form to make it different, but it still has the same form_id as the first. Is this what's causing my problems, or do I need to look/think somewhere else?

Edit: the two forms have the same form_id and form_token, but different form_build_ids.

Is it possible to put multiple forms on a single page? This is for D6.

I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field for the coupon code and its own submit button. The first form works okay; however the second form's hidden values seem to be overridden by the first form's.

I'm using hook_alter to alter the second form to make it different, but it still has the same form_id as the first. Is this what's causing my problems, or do I need to look/think somewhere else?

Is it possible to put multiple forms on a single page? This is for D6.

I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field for the coupon code and its own submit button. The first form works okay; however the second form's hidden values seem to be overridden by the first form's.

I'm using hook_alter to alter the second form to make it different, but it still has the same form_id as the first. Is this what's causing my problems, or do I need to look/think somewhere else?

Edit: the two forms have the same form_id and form_token, but different form_build_ids.

Source Link
user1359
  • 3.9k
  • 10
  • 60
  • 103

multiple forms on single page?

Is it possible to put multiple forms on a single page? This is for D6.

I am trying to make a coupon offer page. I wanted to have two forms for two different offers on each side of a page. Each form has a text field for the coupon code and its own submit button. The first form works okay; however the second form's hidden values seem to be overridden by the first form's.

I'm using hook_alter to alter the second form to make it different, but it still has the same form_id as the first. Is this what's causing my problems, or do I need to look/think somewhere else?