Re: very interesting post problem

From: Date: Sat, 18 Sep 2004 02:25:22 +0000
Subject: Re: very interesting post problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197077@lists.php.net to get a copy of this message
QT wrote:
Dear Sirs, I need to post 3 string data to destination adres. But I see first time, the name of the variables are same such as DATA. I ask the destination ovner is there any error. Should be the form fields name such as DATA1, DATA2 and DATA3. You appear to be posting to a servlet and according to my understanding the following will be collapsed.
$str = "DATA=abc&DATA=123&DATA=xxx" Ie only DATA=xxx will be visible to the servlet
$len = strlen($str); $p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n"; But you are using post. If you add the DATA items to the body of the post message they will be individually accessible by the servlet.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.

« previous php.general (#197077) next »