Ah yes, fixed now. My fast typing and multitasking got the best of me. Thanks.
Ah yes, fixed now. My fast typing and multitasking got the best of me. Thanks.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
$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.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
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>
- Mike
Bookmarks