[PHP] PHP version of ColdFusion CFParam

2003-02-02 Thread Lon Lentz



  Is there a PHP version of the ColdFusion tag ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Copying array segments

2002-10-04 Thread Lon Lentz


  I've got an array that is 5 arrays deep, and I want to copy the array
three levels down of one index into a new array.

  Example: $output['recommendernames'][0]['recommendername'][0]['com'];

  This is what I want to do:

 $newoutput = $output['recommendernames'][0]['recommendername'];

  So that newoutput is an array that is two arrays deep:
$newoutput[0]['com']

  Is there a special function for this?



__
Lon Lentz
Applications Developer
EXImpact.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] SSL inside of PHP

2002-09-12 Thread Lon Lentz


  I'm running PHP 4.1.2 and am looking for information on doing an HTTP post
action from PHP to another web server using SSL (and capturing the
response). I've searched the online docs to no avail. Can somone point me in
the right direction?


______
Lon Lentz
Applications Developer
EXImpact.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz


  Yes it does. It's unfortunate that PHP treats it this way. It makes using
dynamic checkbox inputs a lot more difficult than it should be. ColdFusion
and, I believe, ASP make a comma delimited list. But I did find a little
snippet which allows me to cheat the need for a key in the input tag. If
just add [] to the name, I can use this to create my delimited list.

foreach($whynot as $key => $value)
{$whynotlist .= $value.",";}



-Original Message-
From: listman@evol [mailto:listman@evol]On Behalf Of Keith Vance
Sent: Thursday, August 29, 2002 6:01 PM
To: Lon Lentz
Cc: Php-General@Lists. Php. Net
Subject: Re: [PHP] How to handle multiple value checkboxes


You have to name them different.

and

There will be now way to tell if the user checked both. You could
do this:


This will allow you to group everything in a hash so you could get the
values like this: $_POST['frisbee']['toss'] or
$_POST['frisbee']['dropped']

That makes sense, right?






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz


  That did the trick. Thanks!

-Original Message-
From: Short, Chad [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 29, 2002 5:38 PM
To: Php-General@Lists. Php. Net
Subject: RE: [PHP] How to handle multiple value checkboxes


Use the [] along with the type of input you are using. 

Example:


This will send php an array of $thing with whatever is selected.

Hope this helps.

Chad.

-Original Message-
From: Lon Lentz [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 29, 2002 4:07 PM
To: Php-General@Lists. Php. Net
Subject: [PHP] How to handle multiple value checkboxes




  If I have a form with multiple checkboxes with different values but the
same name, and someone selects a couple of them, how do I reference all of
the values? Right now I am only getting the last one selected.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] How to handle multiple value checkboxes

2002-08-29 Thread Lon Lentz



  If I have a form with multiple checkboxes with different values but the
same name, and someone selects a couple of them, how do I reference all of
the values? Right now I am only getting the last one selected.



__
Lon Lentz
Applications Developer
EXImpact.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz


  Weird. When I plugged them straight into the query, it worked. Thanks
again for the help. Solved a major problem for me.


-Original Message-
From: listman@evol [mailto:listman@evol]On Behalf Of Keith Vance
Sent: Wednesday, August 28, 2002 10:51 PM
To: Lon Lentz
Subject: RE: [PHP] HTTP_REFERER?


Why not just always use the $_SERVER variable?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz


  Thanks for the information. I appreciate your help. It works when I just
want to display them in the main page, but the following code continues to
generate empty data in my table.


$larry = $_SERVER['HTTP_REFERER'];
$moe = $_SERVER['QUERY_STRING'];
$curly = $_SERVER['HTTP_USER_AGENT'];
$schep = $_SERVER['REMOTE_ADDR'];


$result2 = mysql_query("insert into referer(path,query,agent,remote)
values('$larry','$moe','$curly','$schep')",$db);



-Original Message-
From: listman@evol [mailto:listman@evol]On Behalf Of Keith Vance
Sent: Wednesday, August 28, 2002 7:51 PM
To: Lon Lentz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] HTTP_REFERER?


Look at using $_SERVER variable, you can access it anywhere. Do a
print_r($_SERVER) to see the data it holds.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz


  I have a template which places the value of $HTTP_REFERER into a table.
This template is included in another template which is included in yet
another template. The problem I am having is that the HTTP_REFERER,
HTTP_USER_AGENT, and QUERY_STRING variables are all blank.

  Are there issues with these values across included templates? I would
imagine not. Are there settings for Apache that impact these?

  I am running Apache on Linux.



__
Lon Lentz
Applications Developer
EXImpact.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php