Jump to content

richs

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

richs's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Bad news for me. I think I've got a c# problem. I don't seem to be posting the url with the attached parameter sting. When I post to the page with a built up parameter sting everything works fine.
  2. Thanks for the replies. I built a form that looks like this: <?php print_r($_REQUEST); ?> and I get back: Array ( ) in my C# app I'm doing using (StreamWriter _Writer = new StreamWriter(_Request.GetRequestStream(), Encoding.UTF8)) What kind of encoding should I be using?
  3. I'm using Encoding.UTF8 on the c# side.
  4. I have a .net console app that needs to post data to a web page on a godaddy.com server. I think I'm building the post part on the console application OK but the values are not getting to the php form on the server. INSERT INTO `h0mm0n`.`sensors` (`t0` ,`t1` ,`timeStamp` ,`dbTimeStamp` ,`recordCounter`) VALUES ( '". $_REQUEST['t0'] ."', '". $_REQUEST['t1'] ."', '". $_REQUEST['dt'] ."', CURRENT_TIMESTAMP , NULL)"; I'm doing a post from my c# app and the URL string is: "t0=92.52&t1=13.49&dt=2011-01-22 23:09:23Z" If I put the form name and values in a url the values get added to the database OK. What am I missing?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.