XHTML fixes and making use of forms.php
[squirrelmail.git] / src / folders_delete.php
index 0059c25e6d083636a5206332db9c2bf82fa6e3f7..1a96fc26f817f47a49cf6ba4989ca8c4d548cf88 100644 (file)
@@ -66,10 +66,10 @@ if( !sqgetGlobalVar('confirmed', $tmp, SQ_POST) ) {
         html_tag( 'tr' ) .
         html_tag( 'td', '', 'center', $color[4] ) .
         sprintf(_("Are you sure you want to delete %s?"), str_replace(array(' ','<','>'),array('&nbsp;','&lt;','&gt;'),imap_utf7_decode_local($mailbox))).
-        addForm('folders_delete.php', 'POST').
+        addForm('folders_delete.php', 'post')."<p>\n".
         addHidden('mailbox', $mailbox).
-        '<input type="submit" name="confirmed" value="'._("Yes")."\" />\n".
-        '<input type="submit" name="backingout" value="'._("No")."\" />\n".
+        addSubmit(_("Yes"), 'confirmed').
+        addSubmit(_("No"), 'backingout').
         '</p></form><br /></td></tr></table>';
 
     exit;