Using pull down for $state.

This works great!

> $incfilename = "Calc".$state."";
> if (file_exists($incfilename))
>         include($incfilename);
> else
>         echo "Please select a State.<br>\n";  

Thanks To Everyone, 


> I'd do something similar to this, along with 
> putting all states in an array to make sure 
> $state is actually a state (in_array).  And 
> maybe you want to add guam :)
> a) be sure $state is set, else load default
> b) be sure $state is not bogus, else yell at them
> c) be sure the $state file exists, if so, include 
>    it else houston we have a problem

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to