<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY id=MailContainerBody 
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" 
bgColor=#ffffff leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV>Actually that is not a very good idea and bad coding practice.</DIV>
<DIV>Your problem was including {layers:'basic'} the word basic is not some 
variable relating to type or styule of layers it is an actual layer name in the 
example WMS. Instead of "basic" you should have your layer names listed there. 
So your code should be:</DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>var loadedMap = 
new OpenLayers.Layer.MapServer( "OpenLayers WMS",<BR>"</FONT><A 
href="http://localhost:8085/cgi-bin/mapserv.exe?layer=states_poly&amp;layer=states_line"><FONT 
title="http://localhost:8085/cgi-bin/mapserv.exe?layer=states_poly&amp;layer=states_line&#10;CTRL + Click to follow link" 
face="Times New Roman" 
size=3>http://localhost:8085/cgi-bin/mapserv.exe?</FONT></A><FONT 
face="Times New Roman" size=3>",<BR>{map: '/ms4w/apps/app/test.map', mode:'map', 
format: 'png',<BR>transparent:'false', layers: 
'states_poly','states_line'},<BR>{gutter: 15});</FONT><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;hope that helps</FONT></DIV>
<DIV><FONT face=Arial size=2>Matt Priour</FONT></DIV>
<DIV><FONT face=Arial size=2><EM>&nbsp;</DIV></EM></FONT>
<DIV><EM>A variation on your theme worked. I put the multiple layers in the 
URL<BR><BR>this <BR></EM><A 
title="http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.map&amp;layer=states_poly&amp;layer=states_line&amp;mode=map&#10;CTRL + Click to follow link" 
href="http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.map&amp;layer=states_poly&amp;layer=states_line&amp;mode=map"><EM 
title="http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.map&amp;layer=states_poly&amp;layer=states_line&amp;mode=map&#10;CTRL + Click to follow link">http://localhost:8085/cgi-bin/mapserv.exe?map=/ms4w/apps/app/test.map&amp;layer=states_poly&amp;layer=states_line&amp;mode=map</EM></A><BR><BR><EM>seems 
to equal this<BR><BR>var loadedMap = new OpenLayers.Layer.MapServer( "OpenLayers 
WMS",<BR>"</EM><A 
href="http://localhost:8085/cgi-bin/mapserv.exe?layer=states_poly&amp;layer=states_line"><EM>http://localhost:8085/cgi-bin/mapserv.exe?layer=states_poly&amp;layer=states_line</EM></A><EM>",<BR>{map: 
'/ms4w/apps/app/test.map', mode:'map', format: 
'png',<BR>transparent:'false'},<BR>&nbsp;{layers: 'basic'},<BR>{gutter: 
15});<BR><BR>Thanks!</EM></DIV></BODY></HTML>