<!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.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff size=2>var 
myURL;</FONT></SPAN></DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff size=2>myURL 
= </FONT><A href="http://myserver.com/image.php?sym="><FONT face=Arial 
size=2>http://myserver.com/image.php?sym=</FONT></A><FONT face=Arial 
color=#0000ff size=2>&nbsp;</FONT></SPAN><SPAN class=310053523-16092002><FONT 
face=Arial color=#0000ff size=2>+ document.formName.field1.value + "&amp;A=" + 
document.formName.field2.value;</FONT></SPAN></DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff 
size=2>window.open("windowName", myURL, etc);</FONT></SPAN></DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff 
size=2>Cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=310053523-16092002><FONT face=Arial color=#0000ff 
size=2>Peter</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> javascript-admin@LaTech.edu 
  [mailto:javascript-admin@LaTech.edu]<B>On Behalf Of </B>Christopher J. 
  Crane<BR><B>Sent:</B> Monday, September 16, 2002 6:00 PM<BR><B>To:</B> 
  javascript@latech.edu<BR><B>Subject:</B> [Javascript] Javascript and 
  forms<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>I want to create a popup from a link. That part 
  is simple...</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I want the URL of the popup to contain variables 
  from a set of form fields.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>For instance, I want to popup a window when the 
  submit button is pressed to go to <A 
  href="http://my-server.com/image.php">http://my-server.com/image.php</A></FONT></DIV>
  <DIV><FONT face=Arial size=2>I want to add the following variables to the end 
  from the 4 form fields that are contained within the form. Not all of the 4 
  form fields will contain data all the time. The end result should look 
  something like this:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;<A 
  href="http://my-server.com/image.php?sym=ikn&amp;A=ibm&amp;B=xrx&amp;C=danky&amp;D=rhat">http://my-server.com/image.php?sym=ikn&amp;A=ibm&amp;B=xrx&amp;C=danky&amp;D=rhat</A></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I would like the usual options when the popup is 
  created, no scrollbars, a certain size and no address bar, no status bar 
  ect.... The part I am stuck on is getting JavaScript to write the variables 
  from the form to the end of the URL as it is shown above.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thank you in advance to anyone that can help me 
  with this.</FONT></DIV></BLOCKQUOTE></BODY></HTML>