|
You have been particularly awkward with your approach in my opinion.
I would have named functions witha pre-definde prefix say "sec_". Then from there used an ereg expression on your section to make sure its only A-Z a-z 0-9 being entered, further then using a function_exists to see if there was a function for that section, if not then execute the default, or another of your choice. Then determining the value is safe, and the function exists use an eval statement to call the function. This way you dont have to continually ammend your case, and its pretty customisable...
If need be, i can code the above suggestions to show you...
Just a thought,
Dan
Last edited by iFuse : 02-23-2005 at 09:34 PM.
|