in reply to CGI and Database
It may not seem important to you now, but you should consider ways of making your delete operations POST operations instead of GET operations - because a delete operation affects the underlying state of the system.
One way is to output HTML that starts a form:
<form action="" method="post"> <p>Delete <!-- TMPL_VAR NAME=record_name --> <input type="checkbox" name="delete_record" value="<!-- TMPL_VAR NAME=record_name -->" /> </p> <p><input type="submit" name="submit" value="submit" /></p> </form>
This example used HTML::Template as the templating technique (but there are many different ways to output the HTML).
Update: changed reference paragraph from RFC 2616.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: CGI and Database
by dsheroh (Monsignor) on Feb 09, 2009 at 12:43 UTC |