diff options
Diffstat (limited to 'web/contact.cgi')
-rwxr-xr-x | web/contact.cgi | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/web/contact.cgi b/web/contact.cgi index fa9596f55..6518259b3 100755 --- a/web/contact.cgi +++ b/web/contact.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: contact.cgi,v 1.40 2009-07-22 21:56:38 matthew Exp $ +# $Id: contact.cgi,v 1.41 2009-09-03 13:36:47 louise Exp $ use strict; use Standard; @@ -83,9 +83,9 @@ sub contact_page { my $out = $q->h1(_('Contact the team')); if (@errors) { - $out .= '<ul id="error"><li>' . join('</li><li>', @errors) . '</li></ul>'; + $out .= '<ul class="error"><li>' . join('</li><li>', @errors) . '</li></ul>'; } - $out .= '<form method="post">'; + $out .= '<form method="post" action="/contact">'; my $id = $q->param('id'); $id = undef unless $id && $id =~ /^[1-9]\d*$/; @@ -129,7 +129,6 @@ please <a href="/">go to the front page</a> and follow the instructions.')); my $label_message = _('Message:'); my $label_submit = _('Post'); $out .= <<EOF; -<fieldset> <input type="hidden" name="submit_form" value="1"> <div><label for="form_name">$label_name</label> <input type="text" name="name" id="form_name" value="$input_h{name}" size="30"></div> @@ -140,9 +139,7 @@ please <a href="/">go to the front page</a> and follow the instructions.')); <div><label for="form_message">$label_message</label> <textarea name="message" id="form_message" rows="7" cols="50">$input_h{message}</textarea></div> <div class="checkbox"><input type="submit" value="$label_submit"></div> -</fieldset> </form> -</div> EOF return $out; } |