Index: src/hg/phyloGif/phyloGif.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/phyloGif/phyloGif.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -b -B -U 4 -r1.19 -r1.20
--- src/hg/phyloGif/phyloGif.c	24 Jun 2009 01:48:57 -0000	1.19
+++ src/hg/phyloGif/phyloGif.c	24 Jun 2009 02:19:23 -0000	1.20
@@ -335,8 +336,14 @@
 struct memGfx *mg = NULL;
 boolean useCart = FALSE;
 oldVars = hashNew(8);
 onWeb = cgiIsOnWeb();
+boolean isMSIE = FALSE;
+char *userAgent = getenv("HTTP_USER_AGENT");
+if (userAgent && strstr(userAgent ,"MSIE"))
+    isMSIE = TRUE;
+	
+
 cgiSpoof(&argc, argv);
 if (argc != 1)
     usage("wrong number of args");
 
@@ -401,9 +408,14 @@
 	{
     	printf("Content-type: text/html\r\n");
 	printf("\r\n");
 	cartWebStart(cart, NULL, "%s", "phyloGif Interactive Phylogenetic Tree Gif Maker");
+
+	if (isMSIE)  /* cannot handle long urls */
+	    puts("<form method=\"POST\" action=\"phyloGif\" name=\"mainForm\">");
+	else
 	puts("<form method=\"GET\" action=\"phyloGif\" name=\"mainForm\">");
+
 	cartSaveSession(cart);
 	puts("<table>");
 	puts("<tr><td>Width:</td><td>"); cartMakeIntVar(cart, "phyloGif_width", width, 4); puts("</td></tr>");
 	puts("<tr><td>Height:</td><td>"); cartMakeIntVar(cart, "phyloGif_height", height, 4); puts("</td></tr>");

