update a database remotely through hyperterminal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • woothoo
    New Member
    • Nov 2008
    • 5

    update a database remotely through hyperterminal

    Hi!

    I want to update my database through hyperterminal

    I m posting in terminal:[code=text]
    ///////////////////////////////////////////////////////////////////////////
    POST /GPSnetAplicatio n/input.php HTTP / 1.1
    Content-Type:applicatio n/x-www-form-urlencoded;Cont ent-length:70;

    NMEA_Data="1816 34.000,4037.264 7N,02257.1876E, 1.4,37.2,3,51.9 6,0.54,0.29,041 108,07"
    ///////////////////////////////////////////////////////////////////////////[/code]

    the message i get is:[code=text]
    ///////////////////////////////////////////////////////////////////////////
    HTTP/1.1 200 OK
    Date: Fri, 07 Nov 2008 14:11:57 GMT
    Server: Apache/2.2.3 (Linux/SUSE)
    X-Powered-By: PHP/5.2.0
    Set-Cookie: PHPSESSID=6inv1 j8svdti9s3q689n bndbip3uq086; path=/; HttpOnly
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Content-Length: 97
    Connection: close
    Content-Type: text/html

    Connected to MySQL<br />Connected to Database<br />Array
    (
    [0] =>
    )
    TempPos=NUL
    L<br /><br />
    ///////////////////////////////////////////////////////////////////////////[/code]

    PHP code:[code=php]
    ///////////////////////////////////////////////////////////////////////////
    $TempPos = $_POST['NMEA_Data'];
    if ($TempPos=="")
    echo "TempPos=NULL<b r />";
    else.......
    ///////////////////////////////////////////////////////////////////////////[/code]

    the PHP variable $TempPos seems not to load NMEA_Data

    can anybody see something wrong?
    hope i gave you the correct infos to understand my problem
    thank u for your time
    Last edited by pbmods; Nov 7 '08, 03:24 PM. Reason: Added CODE tags.
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    What makes this a PHP problem? So far I don't see it.

    print_r() your POST and see what there is.

    Comment

    • woothoo
      New Member
      • Nov 2008
      • 5

      #3
      Originally posted by Markus
      What makes this a PHP problem? So far I don't see it.

      print_r() your POST and see what there is.
      -------------------------------------------------
      i ve done it and the result is nothing!

      if you noticed php code i have a check if the virable=="" print NULL
      and NULL is the result...so i suppose that something is wrong in loading NMEA_Data in PHP variable
      thank u anyway....

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        So, in retrospect, this actually isn't a PHP problem.

        Maybe post the question in a forum more suited to the nature of the question?

        Markus.

        Comment

        • woothoo
          New Member
          • Nov 2008
          • 5

          #5
          there are many thinks involved in this problem i think...thats why i posted in 3 different forums...thank you for your time... have a nice day!

          Comment

          Working...