[FX.php List] $_REQUEST Array to list

Dale Bengston dbengston at preservationstudio.com
Wed Mar 14 13:14:01 MDT 2007


How about...

$searchdata = '';
foreach ($_REQUEST as $key => $value)
	{
	$searchdata .= $key . ': ' . $value . ', ';
	}

Dale

On Mar 14, 2007, at 1:58 PM, Jonathan Schwartz wrote:

> Hi Folks,
>
> Can someone help me with the syntax for simply writing out the  
> contents of a search request to a variable?  I'm trying to create a  
> log file of searchs and need a single line of text showing the  
> search data pairs.
>
> $count = count($_REQUEST);
> for($i0; $i<=$count; $i++)
>  $searchdata .= $_REQUEST[$i].',';
>
>
> I was looking for data1, data2, data3, data4, etc.
>
> All I get is comma's.
>
> Ultimately, I would like the pairs:
> 	field1:data1, field2, data2, etc.
>
> Thanks for the help.
>
> Jonathan
>
>
> -- 
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-381-1852
> FileMaker 8 Certified Developer
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list