diff options
author | matthew <matthew> | 2006-10-09 15:29:52 +0000 |
---|---|---|
committer | matthew <matthew> | 2006-10-09 15:29:52 +0000 |
commit | ba8c61f5ee2c9fe624a2e5d53f74835647c42c94 (patch) | |
tree | 5fa0cd4041f60a17c307ca06555a9c2e415e598e /web/confirm.cgi | |
parent | 03d55b3dca58bcb76673a9c3cd6ca18c17a4610a (diff) |
Various bugfixes and improvements; new pins.
Diffstat (limited to 'web/confirm.cgi')
-rwxr-xr-x | web/confirm.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/confirm.cgi b/web/confirm.cgi index 706100d7e..b7c543304 100755 --- a/web/confirm.cgi +++ b/web/confirm.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: confirm.cgi,v 1.3 2006-09-27 23:51:45 matthew Exp $ +# $Id: confirm.cgi,v 1.4 2006-10-09 15:29:52 matthew Exp $ use strict; require 5.8.0; @@ -48,8 +48,9 @@ sub main { EOF } elsif ($type eq 'problem') { dbh()->do("update problem set state='confirmed' where id=?", {}, $id); + my $pc = dbh()->selectrow_array("select postcode from problem where id=?", {}, $id); $out = <<EOF; -<p>You have successfully confirmed your problem and you can now <a href="/?id=$id">view it on the site</a>.</p> +<p>You have successfully confirmed your problem and you can now <a href="/?id=$id;pc=$pc">view it on the site</a>.</p> EOF } dbh()->commit(); |