开发者

Drupal form submission to a 3rd party website

I'm building a form in Drupal that needs to submit to a 3rd party website. Within the form API 开发者_StackOverflowit seems like this is not really possible as you register form submission handlers to do all of the processing. I need to have the form method to to POST and it needs to be submitted to this website as it is a 3rd party hosted ordering system. Has anyone run into a similar situation? Any suggestions?


Use the #action attribute on the form array:

$form['#action'] = 'http://example.com';
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜