Hey all,<div><br><div>I have two forms that I need to combine on a Drupal 6 website and I've researched this as much as possible to no luck. The problem, for me, lies in the fact that one of the forms is a regular node add form and the other isn't created by the Form API (but through LM Paypal). Yet, I need a single submit button so the node saves and the user is redirected to Paypal with the specific IPN information for the site.<br>
<br>The code to generate the LM Paypal form is :<br><br><div><?php</div><div>if (function_exists('lm_paypal_can_subscribe')) {</div><div> $subid = 1;</div><div> $theme = drupal_get_path('theme', 'mytheme');</div>
<div> $button_url = $theme . '/images/pay_button.png';</div><div> if (lm_paypal_can_subscribe ($subid)) {</div><div> print lm_paypal_subscribe($subid,8,$button_url);</div><div> } //endif lm_paypal</div><div>
} //endif fn exists </div><div>?></div><br></div><div>Printing this in my modified node form's validation or submission functions doesn't work... Because of the way this form is created in the LM Paypal module I don't have a clue how to modify it to fit in with the proper Form API methods used to submit two forms with one button. I've also tried using the dev version of Subform Element for Drupal 6.</div>
<div><br></div><div>Any thoughts on what I might do to fix this?</div><div>Many thanks!</div><div><br></div><div>Jake Roufa<br><a href="tel:208.557.9390" value="+12085579390" target="_blank">208.557.9390</a><br><div><a href="http://about.me/jacobroufa" target="_blank">about.me/jacobroufa</a></div>
<br>
</div></div>