Hi all
Thanks for the help here.
Shane suggested this site:
A quick google turned up this:
http://www.cs.tut.fi/~jkorpela/forms/methods.html#why. That provides a
reasonable explanation of why GET should only be used for queries, and POST
for state-changing actions.
Shane and Scott suggested to use input buttons that look like links/images:
From memory, you can use links to submit forms
confirms this: http://tom.me.uk/scripting/submit.html.
I have now tried input type="image" src="imgages/small_cross.png"
I didn't know about the type=image. This work very nicely. My test html file now
shows a small image and it looks like a link but it executes a POST. So I can have a
table of these buttons, each with a different value, and they will look like small
crosses
Rob suggested using some javascript. My app does use javascript already so that's a
possible thing to use as well. I entered that js code and it looks fine, just like a
link. I have yet to add it into my app to see if the post works.
Maybe many sites just use a GET as it's easier. I used this site for an excellent
tutorial on getting started with Django http://www.mikecantelon.com/?q=node/22
and they use a GET for deleting items (sure they use a POST for UPDATING
though).
Mike
--
Michael Lake
Computational Research Support Unit
Science Faculty, UTS
Ph: 9514 2238
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders