RE: [PHP] Question in posting form-data

2004-12-17 Thread Yao, Minghua
] Sent: Fri 12/17/2004 11:27 AM To: Yao, Minghua Cc: Erwin Kerk; [EMAIL PROTECTED] Subject: RE: [PHP] Question in posting form-data Yao, Minghua wrote: Yes. I did modify the original since I need to send data to a program which takes only form-data. content-disposition: came from RFC 2388. I

RE: [PHP] Question in posting form-data

2004-12-16 Thread Yao, Minghua
: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thu 12/16/2004 11:46 AM To: Yao, Minghua Cc: Erwin Kerk; [EMAIL PROTECTED] Subject: RE: [PHP] Question in posting form-data You also need to URLEncode the $value, either before you pass it in, or inside the function itself. Where did you get this PostToHost

RE: [PHP] Question in posting form-data

2004-12-16 Thread Yao, Minghua
Thanks. I changed fputs($fp, $value\n); to fputs($fp, $name=$value\n); But I still got the same message. -Minghua -Original Message- From: Erwin Kerk [mailto:[EMAIL PROTECTED] Sent: Thu 12/16/2004 6:30 AM To: Yao, Minghua Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Question in posting

[PHP] Question in posting form-data

2004-12-15 Thread Yao, Minghua
Hi, all, I am testing how to post form-data to a host using the following code (test.php): ?php function PostToHost($host, $path, $name, $value) { // Test of posting form-data $fp = fsockopen($host,80); fputs($fp, POST $path HTTP/1.1\n);

[PHP] How to post form-data to a host using PHP

2004-12-10 Thread Yao, Minghua
Hi, Does anybody know how to post form-data to a host using PHP? Thanks for the answer. -Minghua

[PHP] How to post quote/double quote mark?

2004-12-09 Thread Yao, Minghua
Hi, I used the following function to post a string variable abcdef to a PHP program on another host: ?php function PostToHost($host, $path, $data_to_send) { $fp = fsockopen($host,80); if(!$fp) { echo Failed to open port;

[PHP] How to Pass Parameters to a CGI

2004-12-03 Thread Yao, Minghua
Hi, everyone, I want to pass several parameters to a CGI program run on another server. The following source of that program shows the parameters that need to be set manually. -- FORM name=organism Select

RE: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread Yao, Minghua
PROTECTED] Sent: Thursday, August 07, 2003 11:31 AM To: Yao, Minghua Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How to point at a spot and get relevant information? On Thu, 7 Aug 2003 10:59:01 -0500 , you wrote: Thank you for your reponses. The problem is there are thousands of spots on the plot

[PHP] How to point at a spot and get relevant information?

2003-08-09 Thread Yao, Minghua
Dear all, Anybody knows how to write a graphic plotting code such that when users point at that spot, they can get the information relevant to that spot? Thanks in advance. -MY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to point at a spot and get relevant information?

2003-08-07 Thread Yao, Minghua
Robert and skate, Thank you for your reponses. The problem is there are thousands of spots on the plot. The locations are random. -MY -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 11:00 AM To: skate Cc: Yao, Minghua; [EMAIL PROTECTED

[PHP] How to pass connection to next page

2003-07-23 Thread Yao, Minghua
Hi, On one page, I have: ?php ... $dbcnx0 = @mysql_connect(localhost, $name, $password); ... session_start(); $_SESSION['my_con'] = $dbcnx0; ... ? On another page, I have: ?php .. session_start(); $dbcnx1 = $_SESSION['my_con']; . ? The