Ah yes, fixed now. My fast typing and multitasking got the best of me. Thanks.
Printable View
Ah yes, fixed now. My fast typing and multitasking got the best of me. Thanks.
$var++; works, and i think that a negligable proformance boost would be attained, as only one operation has to be carried out, and the variable doesnt have to be reassigned.
Probably, though how PHP actually does the operation is not clear, so it might be doing the exact same amount of work.
Use a direct variable if you want to. Link directly to the file searched:
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Search</title>
</head>
<body>
<form method="get">
Search Term:
<input type="text" name="term">
<br><input type="submit" value="Enter">
</form>
<br>Results:
<br><?php
$t = $_GET["term"];
$ext = ".php";
if ($t != "") {
echo "<a href=\"$t$ext\" target=\"_blank\">$t$ext</a>\n<br>";
}
?>
</body>
</html>