Re: [PHP] $HTTP_POST array

2004-12-28 Thread Zareef Ahmed
Hi Kalinga, it is not recomended to use $HTTP_POST_VAR array. Use $_POST and it have global scope. In PHP5, we have a special directive by which we can disable $HTTP_*_VAR. currently it defaults to enabled. But who says in future versions of PHP it default set to disabled. then your code will

Re: [PHP] $HTTP_POST array

2004-12-27 Thread Burhan Khalid
kalinga wrote: Dear all, Is it possible to pass the entire $HTTP_POST array to a function of a class as a variable? Use $_POST -- its automatically in scope of every function (you don't need to pass it). You can pass any array to a function. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] $HTTP_POST array

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 16:46, kalinga wrote: > Is it possible to pass the entire $HTTP_POST array to a function of a class > as a variable? It is possible to pass *any* array to a function of a class as a variable. > without doing ... > > $new_classAccount = new classAccount; > $

[PHP] $HTTP_POST array

2004-12-23 Thread kalinga
Dear all, Is it possible to pass the entire $HTTP_POST array to a function of a class as a variable? without doing ... $new_classAccount = new classAccount; $msg = $new_classAccount->addAccount($HTTP_POST_VARS['accountName'],$HTTP_POST_VARS['firstName'],$HTTP_POST_VARS['lastName']); i

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
Matt M. wrote: can you use PEAR? There is already a bunch of http packages http://pear.php.net/package-search.php?pkg_name=http&bool=AND&submit=Search I've taken a look at that and don't know the first thing about how to implement or use it. Are there any tutorials out there? Plus, I don't know i

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
Jay Blanchard wrote: [snip] I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. [/snip] Have you checked the http access and error logs? On their end? Yes they can see each attempt

RE: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jay Blanchard
[snip] I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. [/snip] Have you checked the http access and error logs? -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Matt M.
> function http_post($host, $path, $data) > { > $http_response = ''; > $content_length = strlen($data); > > $fp = fsockopen($host, 80); > fputs($fp, "POST $path HTTP/1.1\r\n"); > fputs($fp, "Host: $host\r\n"); > fputs($fp, "Content-Type: application/x-www-form-u

[PHP] HTTP_POST Intermittent Problem

2004-08-26 Thread Jeff Oien
I'm using the code below and about a third of the posts aren't getting through. We have no idea why and don't know where to start to trouble shoot. Any ideas? Thanks. Jeff function http_post($host, $path, $data) { $http_response = ''; $content_length = strlen($data); $fp = fsockop

[PHP] http_post

2003-02-28 Thread Diana Castillo
;value"]; echo"Field:$key = $val\n"; } return 1; } function send($display=0){ // open socket to server $errno=$errstr=$retstr=""; $sk = fsockopen($this->_server, $this->_port, &$er

[PHP] http_post

2003-02-28 Thread Diana Castillo
Hi , I am trying the following code but get no response from the server, can someone tell me what I am doing wrong? thank you. "obese bob", "age" => "20") // ); $urlencoded = ""; while (list($key,$value) = each($vars)) $urlencoded.= urlencode($key) . "=" . urlencode($value) .

Re: [PHP] HTTP_POST??

2001-01-18 Thread Chris Lee
Try this, I know Ive botched your origonal code... somepage.php \n"; } ?> someotherpage.php $val) { echo "\n"; } while(...) { ... echo "\n"; } ?> email me if you have more questions. Chris Lee Mediawaveonline.com ""Wade Halsey"" <[EMAIL PROTECTED]> wrote in message 025401c0811c

Re: [PHP] HTTP_POST

2001-01-17 Thread Richard Lynch
> > >For example there will be three rows with different values and each checkbox will have a unique name. >On the next page once a submit button has been pushed I want to do: >sqlExecute( "Select * from SkyDiary where AccNo = (Here I want the value of the checkbox) > >Do I use HTTP_POST_VARS her

[PHP] HTTP_POST??

2001-01-17 Thread Wade Halsey
Hi I have a while loop which populates rows in a table, in each row is a checkbox which has a unique name: On another page I want to output all the details in a specific table row, how do I check which checkbox has been checked so that specific row can be displayed? Thanks for any help Wa

[PHP] HTTP_POST???

2001-01-16 Thread Wade Halsey
Hi I have the following code which is created in a loop. For example there will be three rows with different values and each checkbox will have a unique name. On the next page once a submit button has been pushed I want to do: sqlExecute( "Select * from SkyDiary where AccNo = (He

[PHP] HTTP_POST

2001-01-16 Thread Wade Halsey
Hi I have the following code which is created in a loop. For example there will be three rows with different values and each checkbox will have a unique name. On the next page once a submit button has been pushed I want to do: sqlExecute( "Select * from SkyDiary where AccNo = (He