I am very new to PHP about two hours. I have a search page that I post back to the same URL. When the form is loaded I check to see if the seach variable is set ($srch is the name of the text box on the form) and then determine what function to call. I either call a welcome message function to be printed to the page or a function to search a database and build a table of results. I have included my script below....My question is: Is this a good way to handle search forms with PHP? Since I have no examples to work from I am not sure what the proper way is.
Thanks for the help. if (isset($srch)){ if (strlen(trim($srch)) > 0) { $srch = strtoupper(trim($srch)); buildtable($srch); } else { dispwelcome(); } } else { dispwelcome(); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php