simple multiple submits

From: Date: Sat, 29 Jul 2000 22:46:22 +0000
Subject: simple multiple submits
Groups: php.general 
Request: Send a blank email to php-general+get-9003@lists.php.net to get a copy of this message
i've been hung up on this for too long, and have gravitated toward a js solution below. here is what I have: function refreshWindow(filename) { open.self(filename); } and <form> <p> <input type="submit" name="Submit2" value="Print"onClick="refreshWindow('prn_prop.phtml?id=<% echo $data[id] %>');"> <input type="submit" name="Submit2" value="Edit"onClick="refreshWindow('ed_prop.phtml?id=<% echo $data[id] %>');"> <input type="submit" name="Submit2" value="Delete"onClick="refreshWindow('del_prop.phtml?id=<% echo $data[id] %>');"> </p> </form> all I want to do is have the correspondingly correct window loaded next (ie. prn_prop.phtml) when the appropriate submit button is hit. How should I do that? I couldn't see a way w/ php and forms so turned to javascript, and have tried everything. many thx - eric

« previous php.general (#9003) next »