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
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
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']);
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 =
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 =
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:
[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
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
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
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 =
(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
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 ";
}
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
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
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
15 matches
Mail list logo