Ask a Question related to PHP Development, Design and Development.
-
Daniel Souza #1
Re: Calling functions from Button actions
<?
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>
Daniel Souza Guest
-
calling two Actions in a form
Hi, I am creating a php program with an HTML integration. Within my HTML code, I called two buttons... my question is, how can I call two... -
calling actions from a script and vice versa (CS)
Hey I just realized that I can automate a lot of my workflow in illustrator with applescript (I never realized it was scriptable) and I'm running... -
Movieclip actions/functions/methods/...?
I'm having big trouble with my movie clips, as no actions seem to work. I have the movie clips exported to actionscript, and I'm using these names,... -
[PHP] Calling functions from Button actions
I would assume you are referring to PHP functions since that is the nature of this list and since PHP only really executes on a web server, and since... -
button actions
Hi all, quick question, I need to do two things for a presentation (published as a windows projector .exe file); 1. create a button that will... -
Daniel Souza #2
Re: [PHP] Re: Calling functions from Button actions
I dont use it. Its just an example.
Thanks anyway.
Daniel
"Marek Kilimajer" <kilimajer@webglobe.sk> escreveu na mensagem
news:3F6481AA.6050206@webglobe.sk...> I hope you don't use this method. It is VERY unsafe. You execute ANY
> function that the user tells you.
>
> Daniel Souza wrote:> > <?
> > 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>
> >Daniel Souza Guest



Reply With Quote

