Has anyone done this?
Here is some crap code I am trying to get to work, but I am not realy sure what I am doing here since I have never done anything like this before.
[code]
string sql = "INSERT INTO tblWhatever (field1,field2) VALUES ('1','2')";
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://www.mywebsite.com/mypage.php");
myReq.Method = "POST";
myReq.ContentType = "application/x-www-form-urlencoded";
StreamWriter writer = new StreamWriter(myReq.GetRequestStream());
writer.Write(sql);
writer.Close();
[/code]
Thanks for any input!
Answers
Know the answer? Post it. Somebody with the same question will find it here.