Hi everyone, I have a problem that I cannot seem to find a solution.
I'd appreciate any insight on it.
I have a form with inside a dynamically created table of Images and 3
inputs of type image:
echo "<form method=post
action='http://localhost/processplay.php ?$counter' >";
echo "<table align=center border=10>";
$counter = 1;
for($i=0;$i<5;$ i++) {
echo "<tr>";
.....
echo "<img src=$source width=30 height=30>";
......
echo echo "<input name=$counter type=image height=30 width=30
src=$source>"
......
.....
how can I pass to the processplay.php (the action of this form) which
input was pressed? (remember that the name of the input is unknown to
me before the form is created so I cannot write it explicitly).
I'd appreciate any insight on it.
I have a form with inside a dynamically created table of Images and 3
inputs of type image:
echo "<form method=post
action='http://localhost/processplay.php ?$counter' >";
echo "<table align=center border=10>";
$counter = 1;
for($i=0;$i<5;$ i++) {
echo "<tr>";
.....
echo "<img src=$source width=30 height=30>";
......
echo echo "<input name=$counter type=image height=30 width=30
src=$source>"
......
.....
how can I pass to the processplay.php (the action of this form) which
input was pressed? (remember that the name of the input is unknown to
me before the form is created so I cannot write it explicitly).
Comment