By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,688 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

update a database remotely through hyperterminal

P: 5
Hi!

I want to update my database through hyperterminal
The next step is to do it with python but anyway....:)

I m posting in terminal:
///////////////////////////////////////////////////////////////////////////
Expand|Select|Wrap|Line Numbers
  1. POST /GPSnetAplication/input.php HTTP / 1.1
  2. Content-Type:application/x-www-form-urlencoded;Content-length:70;
  3.  
  4. NMEA_Data="181634.000,4037.2647N,02257.1876E,1.4,37.2,3,51.96 ,0.54,0.29,041108,07"
  5.  
///////////////////////////////////////////////////////////////////////////

the message i get is:
///////////////////////////////////////////////////////////////////////////
Expand|Select|Wrap|Line Numbers
  1. HTTP/1.1 200 OK
  2. Date: Fri, 07 Nov 2008 14:11:57 GMT
  3. Server: Apache/2.2.3 (Linux/SUSE)
  4. X-Powered-By: PHP/5.2.0
  5. Set-Cookie: PHPSESSID=6inv1j8svdti9s3q689nbndbip3uq086; path=/; HttpOnly
  6. Expires: Thu, 19 Nov 1981 08:52:00 GMT
  7. Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
  8. Pragma: no-cache
  9. Content-Length: 97
  10. Connection: close
  11. Content-Type: text/html
  12.  
  13. Connected to MySQL<br />Connected to Database<br />Array
  14. (
  15. [0] =>
  16. )
  17. TempPos=NUL
  18. L<br /><br />
  19.  
///////////////////////////////////////////////////////////////////////////

PHP code:
///////////////////////////////////////////////////////////////////////////
Expand|Select|Wrap|Line Numbers
  1. $TempPos = $_POST['NMEA_Data'];
  2. if ($TempPos=="")
  3. echo "TempPos=NULL<br />";
  4. else.......
  5.  
///////////////////////////////////////////////////////////////////////////

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
Nov 7 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.