Hello all,
I have a simple test form below with two submit buttons. One standard text and the other is an image. When, submitting via the standard text button, the value "testval" (from $REQUEST['cmd']) is displayed (echoed) as expected. However, when submitting via the image button, the value of $REQUEST['cmd'] is blank and noting is displayed. What am I missing?
Thanks,
HeidiR
<?php
echo("CMD:" . $_REQUEST['cmd']);
$str = "<br /><form method=post action=" . $PHP_SELF . ">";
$str .= "<table>";
$str .= "<tr><input name=cmd type=image value='testval' src='../images/email2.gif'></td></tr>";
$str .= "<tr><input name=cmd type=submit value='testval'></td></tr>";
$str .= "</table>";
$str .= "</form>";
echo ($str);
?>