PHP Snippets
Name:Search PHP Function
Description: This snippet will search the php function list from php.net and return the information about the specific function.
Code below...
>
<!--- This is the HTML code! -->
<!--- Save the code below as functionsearch.php -->
<form method="post" action="functionresults.php">
<input type="text" name="php" size="30"/> <input type="submit" name="php_submit" value="Search" style="cursor:pointer;"/>
</form>
<!--- This is the PHP code! -->
<!--- Save the code below as functionresults.php -->
<?php
$keyword = $_POST['php'];
if ($_POST['php_submit']) {
header("Location: http://ca3.php.net/manual-lookup.php?pattern=$keyword&lang=en");
}
//Thats it! =)
?&
<!--- Save the code below as functionsearch.php -->
<form method="post" action="functionresults.php">
<input type="text" name="php" size="30"/> <input type="submit" name="php_submit" value="Search" style="cursor:pointer;"/>
</form>
<!--- This is the PHP code! -->
<!--- Save the code below as functionresults.php -->
<?php
$keyword = $_POST['php'];
if ($_POST['php_submit']) {
header("Location: http://ca3.php.net/manual-lookup.php?pattern=$keyword&lang=en");
}
//Thats it! =)
?&