Re: Submit Using An Image Form Processing

From: Date: Sat, 18 Jun 2011 23:34:44 +0000
Subject: Re: Submit Using An Image Form Processing
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-313605@lists.php.net to get a copy of this message
On 06/18/2011 11:06 AM, Jason Pruim wrote: > > On Jun 18, 2011, at 11:54 AM, "Ron Piggott" <ron.piggott@actsministries.org> > wrote: > >> <INPUT TYPE="image" >> SRC="http://www.theverseoftheday.info/store-images/trash_can.png" >> WIDTH="20" HEIGHT="20" style="float: right;boarder: 0;" >> alt="Remove Product From Shopping Cart" name="remove_product" >> value="1" /> > > I would wrap the image in a link like so: > <a href="mypage.php?id={$autoincrementnum}"><img > src="blah"></a> > > And then have a get look for that variable: > > $id=$_get[id]; > > If (isset($id)) { > > //delete code here > } > > Check all that before you run it.... I'm writing from my smart phone and it's all > untested. Hopefully it gives you a start though. > > Jason Pruim Get method is for retrieval only. It is not for anything that has a consequence (insert, update, delete, send email, etc.). Use only post for those. -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#313605) next »