* Begin migration to the new "rounded boxes" look
[citadel.git] / webcit / graphics.c
index ab9d7709fb24e0e8dc89095eb59b8f92f13d4ca0..7616be44772e8f8aed99547d5a79ef7a8fc56459 100644 (file)
@@ -37,7 +37,12 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl)
 
        wprintf("<CENTER>\n");
 
-       wprintf("<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"%s&which_room=%s\" METHOD=\"POST\">\n", uplurl, bstr("which_room"));
+       wprintf("<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"%s\" "
+               "METHOD=\"POST\" NAME=\"graphicsupload\">\n", uplurl);
+
+       wprintf("<INPUT TYPE=\"hidden\" NAME=\"which_room\" VALUE=\"");
+       urlescputs(bstr("which_room"));
+       wprintf("\">\n");
 
        wprintf("You can upload any image directly from your computer,\n");
        wprintf("as long as it is in GIF format (JPEG, PNG, etc. won't\n");