简体   繁体   中英

validate form using php then post data to external url

I have been provided an html form by a 3rd party company to place on my site. The form data is posted to their database via a url they provided.I have applied various javascript validation and anti-spam methods to the form but some spammer script is getting past these measures and writing this data to the database.

I need to somehow intercept the form data on my end and validate using php, and then submnit the data using the url provided.. can you please suggest a way to do this?

This is an issue I've been struggling with for weeks so any help would be greatly appreciated.

Thanks!

Post form data to your own page validate it and then post to company URL via CURL in PHP

helpful link. http://davidwalsh.name/curl-post

Note: you need to enable curl in your php.ini file if it is not already enabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM