Skip to content
Advertisement

Contact form 7 post to .asp

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.

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement