Contact form 7 post to .asp

喜欢而已 提交于 2019-12-24 14:08:05

问题


Is it possible to post the form contents of Contact Form 7 form fields to an awaiting .asp page? My form has four input fields and one hidden field. Name, Telephone, Email, HowFoundUs, Refer. I want to post those input values to the following .asp page:

clientsite.com/default.asp?name=xxxxxx&telephone=xxxxxxxx&howfoundus=xxxxxx&email=xxxxx&refer=xxxxxxx

I have been searching through the plugin files and have yet to find anything.


回答1:


Yes, you have to change the "action" attribute in the form using this Filter Hook wpcf7_form_action_url. You could add the hook into your theme's functions.php and then just process the form data in your ASP page. Another option is to use Javascript to change the action attribute of the form.

I hope it helps.



来源:https://stackoverflow.com/questions/7101614/contact-form-7-post-to-asp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!