简体   繁体   中英

How to send data windows form application to website

i am creating an windows application in c#. in this application i am creating an feed back form for client feedback. now i want to submit all data this feedback form to my on site.

The the puzzle is that my website is in PHP .

should i go with this combination?

i min c# app and PHP website and sent data via url and grab it on site using GET method, or i need to create a separate website in asp for this action and if you say YES the please tell me .

how to do this action in ASP

thanks

You can simple send a Get/Post-Request to your PHP-Page: Generate HTTP Requests using c#

and then Read the data via: $Get or $Post.

You can do the same with ASP.Net, via QueryString:

string cParam = Request.QueryString["param"];

Your Website language doesn't really matter as long as you code to get the proper form values. You can use a GET or a POST as well based on type and quantity of data sent across.

You can HTTPRequest and HTTPResponse classes to send response to the Website.

I just got the answer . This question may already have an answer here

pass string from C# Windows Form Application to php webpage

使用相同数据库,并从窗口应用程序放置数据并从Web应用程序获取数据

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