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
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
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;
> $
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
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
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
[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
> 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
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
;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
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) .
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
>
>
>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
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
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
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
16 matches
Mail list logo