Location: PHPKode > projects > PHPFreeNews > phpfn/NewsSearchForm.php
<?php

/*	+--------------------------------------------------------------
	| PHPFreeNews - News Headlines on your website                |
	| Developed by Jim Willsher.                                  |
	| http://www.phpfreenews.co.uk                                |
	+-------------------------------------------------------------+
*/

require_once('Config/Config.php');
require_once('Inc/Functions.php');

// Handle fields coming from the search-form
if (isset($_REQUEST['Match']))
	$Match = strip_tags($_REQUEST['Match']);
else
	$Match = NULL;

if (isset($_REQUEST['CatID']))
	$CatID = strip_tags($_REQUEST['CatID']);

?>
<form method="post" action="<?=$_SERVER['PHP_SELF']?>">
	<?= $SearchPromptText ?>
	<input type="text" size="20" maxlength="100" name="Match" value="<?= $Match ?>" />
	<input type="hidden" name="NewsMode" value="<?= $NewsMode ?>" />
	<input type="submit" name="SearchNews" value="<?= $SearchButtonText ?>" />
	<?php
	if ($SearchByCategory == 1)
	{
		echo 'Category...';
		BuildCategoryDropdown('CatID', (isset($CatID) ? $CatID : ""), false, true);
	}
	?>
</form>
Return current item: PHPFreeNews