开发者

Modal Dialog and Form Elements

I have a form that contains some fields and a 开发者_JAVA技巧recaptcha box.

I have hidden the recaptcha box. The user clicks "create profile" and a modal dialog pops up with the recaptcha box. All fine.

But, how do I submit that information? I am using Javascript to create the recaptcha HTML in the modal. I have a button called "Create Profile" that has this code attatched to the onclick:

$("#form").submit()

The form data gets submitted to the create.php page, but the recaptcha info does not. Do I have to manually pass this information via the post request to create.php?

Without the modal dialog it works fine. I can't understand what's going on.

Any ideas?

The site is www.presslike.net


Just like ryley said. The modial dialog's HTML is not located between the tags. You have two choices

  1. Move the modal dialog inside the form
  2. Post the data from the form and the Modal using javascript
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜