[nycphp-talk] Preferred method for parsing multi-row submitbuttons
Daniel Krook
krook at us.ibm.com
Mon Nov 21 16:55:13 EST 2005
> > <input type="submit" name="submit[$row_id]" value="Edit"/> <input
> > type="submit" name="submit[$row_id]" value="Del"/>
>
> Seems like this would be better as hyperlinks rather than forms.
>
> --Dan
...
> I thought of that, and again, it sure would be much
> easier. But doesn't
> that violate the W3C recommendation for get versus post. Isn't a
> Hyperlink simulating a get submission, which should not be used for
> "actions" that modify a database.
Yep, in theory GET requests should be side-effect free, so the instinct is
not to use links... If only for one lesson learned the hard way... What if
a spider or recursive wget hits this page (and all you have to stop the
requests for the normal user are JavaScript confirms)?
Daniel Krook, Content Tools Developer
Global Production Services - Tools, ibm.com
http://bluepages.redirect.webahead.ibm.com/
http://blogpages.redirect.webahead.ibm.com/
http://bookmarks.redirect.webahead.ibm.com/
More information about the talk
mailing list