Problem with submit form if type is image

From: Date: Sat, 14 Aug 2004 14:13:39 +0000
Subject: Problem with submit form if type is image
Groups: php.general 
Request: Send a blank email to php-general+get-193794@lists.php.net to get a copy of this message
Dear all, Can you please help me with the following? I have written the following script: If i have a input type image; the script doesn't go to the prospect2.php. If i have a input type=submit everything works super! Can someone help me? Frank _____________________________________________________________________________________ <? $_POST["submit"]=isset($_POST["submit"])?$_POST["submit"]:""; if($_POST['submit']!="") { //$printresse=$_POST['printresse']; session_start(); $_SESSION["printresse"] = $_POST['printresse']; header("Location: prospect2.php"); exit; } ?> <html> <body> <form name="form1" method=post id=form1 enctype=multipart/form-data action=<?=$_SERVER['PHP_SELF']?>> <select name="printresse"> <OPTION>Value1</OPTION> <OPTION>Value2</OPTION> </SELECT> ?> echo"<td align=\"right\"><input type=\"image\" src=\"images/next_button.jpg\" name=\"submit\" value=\"submit\"></td></tr>"; ?> </form>

« previous php.general (#193794) next »