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

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

[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']);

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; $msg =

[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 =

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:

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

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 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=httpbool=ANDsubmit=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 if

[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. ?php function http_post($server, $port, $url, $vars) { // example: // http_post( // www.fat.com, // 80, // /weightloss.pl, // array(name =

[PHP] http_post

2003-02-28 Thread Diana Castillo
(uniqid(rand())).; $message=$this-_get_message($boundary); $str=; $str.=strtoupper($this-_method). ; $str.=$this-_file. HTTP/1.0 \r\n; $str.=Referer: \r\n; $str.=User-Agent: php-HTTP_POST/1.0 \r\n; $str.=Host

Re: [PHP] HTTP_POST??

2001-01-18 Thread Chris Lee
Try this, I know Ive botched your origonal code... somepage.php ? while(...) { ... echo "tdinput type='checkbox' name='account_num[$SkyAccNo]' value='$SkyAccNo'/td\n"; } ? someotherpage.php ? function checked($val_1, $val_2) { if ($val_1 == $val_2) return " checked "; }

[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: tdinput type="checkbox" name="?php print $SkyAccNo;?" value="ON"/td On another page I want to output all the details in a specific table row, how do I check which checkbox has been

[PHP] HTTP_POST

2001-01-16 Thread Wade Halsey
Hi I have the following code which is created in a loop. tr td?php print $SkyAccNo; ?/td td?php print $SkyDateAss; ?/td td?php print $SkyDateResult; ?/td tdinput type="checkbox" name="?php echo$SkyAccNo;?" value="ON"/td /tr For example there will be three rows with different values and

[PHP] HTTP_POST???

2001-01-16 Thread Wade Halsey
Hi I have the following code which is created in a loop. tr td?php print $SkyAccNo; ?/td td?php print $SkyDateAss; ?/td td?php print $SkyDateResult; ?/td tdinput type="checkbox" name="?php echo$SkyAccNo;?" value="ON"/td /tr For example there will be three rows with different values and