MaggsWeb : anything web
Search, with no click
How do you style a search button? They all look crap to me, and the default browser ones are all different. So, my solution is to get rid of it. Gone. No button.   Heres how…<?php $search_text = ‘Search MaggsWeb’; ?><form id=”searchForm” action=”search-results.php” method=”GET”><input name=”q” type=”text” class=”inputBox searchBox”value=”<?php echo $search_text; ?>”onblur=”if (this.value == ”) { this.value [...]
Where am I…?
$path = $_SERVER['PHP_SELF'];$file = basename($path); // $file is set to “index.php”$file = basename($path, “.php”); // $file is set to “index”(str path [,str suffix])pathA path.n Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is the forward slash (/).suffixIf the [...]
Close
