hello. i am new to php and needed some advice on how to search arrays.
also take that array value to string for further processing.
this was my attempt at it.
<?php
$post = $_GET['p'];
/////setup menu/////
echo '<form action="search.php" method="get" name="form1">';
echo '<input name="p" type="text" />';
echo '<input type="submit"/>';
echo '</form>';
?>
<?php
/////open directory count / list files and list/////
$dir = "cont/database/";
$dh = opendir($dir);
while(false !== ($filename = readdir($dh)))
{
if($filename !="." && $filename !="..")
{
$counter = count($files);
$files[$counter] = $filename; //array
}
}
?>