case sensitive?

I was wondering how to make a function not be case-sensitive to the prefix value.
also my table header loads when the page first loads, i need it to load only when i type in the query string… if that makes sense

if anyone knows what i need to add to my code to do these i would appreciate it. thanks.

the easiest (thats my opinion) way to make it non case sensitive is to convert both values u wanna compare with strtolower.

if(strtolower($var1)==strtolower($var2))
http://php.net/strtolower

or to increase speed with long strings use strcasecmp
if (strcasecmp($var1, $var2) == 0)
http://php.net/strcasecmp

include the hole table inside an if.
e.g. if(isset($_POST[‘whatever’])) { echo '<table … ‘’; }

Sponsor our Newsletter | Privacy Policy | Terms of Service