<?
   function func1()
   {
   }
   function func2()
   {
   }
   function func3()
   {
   }
   function func4()
   {
   }
   function func5()
   {
   }

   if (isset($_REQUEST['funcs']))
      foreach ($_REQUEST['funcs'] as $key=>$val)
         if (function_exists($key))
            $key();
?>
<hr>
<form method=POST>
<input type=submit name=funcs[func1] value="Execute Function 1"><br>
<input type=submit name=funcs[func2] value="Execute Function 2"><br>
<input type=submit name=funcs[func3] value="Execute Function 3"><br>
<input type=submit name=funcs[func4] value="Execute Function 4"><br>
<input type=submit name=funcs[func5] value="Execute Function 5"><br>
</form>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to