Question

How do I make a button for a form that pops-up a seperate page to calculate, then after calculation, close and submit the result back to the form on the other page.

Asked by: CrewXp

How do I make a button for my form I made, pop-up a seperate page (which i have already made) to calculate, then after calculation, close and submit the result back to the form on the other page. The seperate (the 2nd) page does the calculations, but I only know how to make it submit the details to the same page (the 2nd, not the first). I have to manually copy the number from the second page to the first.

First Page:

<tr valign="baseline">
      <td nowrap align="right">Access Level:</td>
      <td><input type="text" name="access" value="126719" size="32"></td>
    </tr>

The value is nothing, its just a default value used most.

Second Page(this is a long one, but the code is simple)

----BGN CODE-----------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>

<title>Access Levels</title>
<!--(Meta)==========================================================-->

<meta name=generator content="Access Level">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=1375>
<meta name=layout-width content=700>
<meta name=date content="06 8, 2001 3:37:23 PM">


<!--(Links)=========================================================-->

<SCRIPT language="javascript" title="WebHelpSplitCss">
<!--
if (navigator.appName=="Netscape")
{   document.write("<LINK rel='StyleSheet' href='../default_ns.css'>");}
else
{   document.write("<LINK rel='StyleSheet' href='../default.css'>");}
//-->
</SCRIPT>
<style>
<!--
p.whs1 {font-weight: bold;}
p.whs2 {font-weight: bold;}
p.whs3 {font-style: italic; font-size: 10pt;}
ul.whs4 {list-style: disc;}

-->
</style>
<script language="javascript" title="WebHelpInlineScript">
<!--
function reDo() {
  if (innerWidth != origWidth || innerHeight != origHeight)
     location.reload();
}
if ((parseInt(navigator.appVersion) >= 4) && (navigator.appName == "Netscape")) {
      origWidth = innerWidth;
      origHeight = innerHeight;
      onresize = reDo;
}
//-->
</script>
<style>
<!--
  div.WebHelpPopupMenu {position:absolute; left:0px; top:0px; z-index:4; visibility:hidden;}
  p.WebHelpNavBar {text-align:right;}
  td.column2b
        {
              padding-right: 10px;
              padding-left: 30px;
              border-right-color: #000000;
              border-right-style: Solid;
              border-right-width: 1px;
              border-bottom-style: Solid;
              border-bottom-color: #000000;
              border-bottom-width: 1px;
              padding-top: 5px;
              padding-bottom: 5px;
        
        }
   td.column2a
        {
            padding-right: 10px;
            padding-left: 30px;
            border-right-style: none;
            border-bottom-color: #000000;
            border-bottom-style: Solid;
            border-bottom-width: 1px;
            padding-top: 5px; padding-bottom: 5px;
        }
  td.column0
        {
            padding-right: 10px;
            padding-left: 10px;
            border-left-style: Solid;
            border-left-color: #000000;
            border-left-width: 1px;
            border-right-style: Solid;
            border-right-color: #000000;
            border-right-width: 1px;
            border-bottom-width: 1px;
            border-bottom-color: #000000;
            border-bottom-style: Solid;
            padding-top: 5px;
            padding-bottom: 5px;
            x-cell-content-align: center;
        }
  td.column1
        {
              vertical-align: middle;
            padding-right: 10px;
            padding-left: 10px;
            padding-top: 5px;
            padding-bottom: 5px;
            border-right-width: 1px;
            border-right-color: #000000;
            border-right-style: Solid;
            border-bottom-style: Solid;
            border-bottom-color: #000000;
            border-bottom-width: 1px;"
        }

-->
</style>
<script src="../bsscnbar.js" language="JavaScript" title="WebHelpNavBarExtJs" >
</script>
</head>

<!--(Body)==========================================================-->


<body>

<SCRIPT language="JavaScript" title="WebHelpNavBar">
<!--
gbstrRelHomePageURL="../index.html";
if (parseInt(navigator.appVersion) >=3  && window.name.indexOf("BSSCPopup") == -1)
{
var strNvHome=""; var strNvBrowse=""; var strNvWebSearch="";
if ((parseInt(navigator.appVersion) >= 3) && (typeof (BsscNavHasNavFrame) != "undefined") &&
 (typeof(BsscNavIsList) == "undefined" || !BsscNavIsList()))
{
  if (!BsscNavHasNavFrame()) {
    strNvHome  = "<a href=\"javascript:void(0);\" onclick=\"onBsscNavShow();return false;\"><img src='../bsscnav1.gif' width=42 height=19 border=no></a>";
  } else {
    strNvHome  = "<a href=\"javascript:void(0);\" onclick=\"onBsscNavHide();return false;\"><img src='../bsscnav2.gif' width=37 height=19 border=no></a>";
  }
}
if ((strNvHome.length != 0) || (strNvBrowse.length != 0) || (strNvWebSearch.length != 0)) {
  document.write("<p id='NavBar' align='right' class=WebHelpNavBar><nobr><font size=1>");
  if (strNvHome.length != 0) document.write(strNvHome);
  if (strNvBrowse.length != 0) document.write(strNvBrowse);
  if (strNvWebSearch.length != 0) document.write(strNvWebSearch);
  document.write("</font>&nbsp;&nbsp;&nbsp;</nobr></p>");
  }
}
//-->
</SCRIPT>

<!--(Generated Script Links)========================================-->
<!--(Generated Code)================================================-->
<!--(WARNING: DO NOT EDIT OR DELETE THIS SECTION!)==================-->
<!--begin!kadov{{===================================================-->
<script type="text/javascript"
            language=JavaScript1.2
            x-save-method=compute-relative
            src="../ehlpdhtm.js"></script>
<script type="text/javascript"
            language=JavaScript1.2>
<!--
if( typeof( kadovFilePopupInit ) != 'function' ) kadovFilePopupInit = new Function();if( typeof( kadovTextPopupInit ) != 'function' ) kadovTextPopupInit = new Function();
 //-->
</script>

<!--}}end!kadov=====================================================-->
<!--(==============================================================)-->


<!--(Resources)=====================================================-->
<!--(Generated Code)================================================-->
<!--(WARNING: DO NOT EDIT OR DELETE THIS SECTION!)==================-->

<div class=x-popup-text id=POPUP158253672  style='display: none; position: absolute' >
<!--kadov-resources-begin{{-->
<p>[Counter-Strike game mod]</p>
<!--}}kadov-resources-end-->
</div>

<div class=x-popup-text id=POPUP158268828  style='display: none; position: absolute' >
<!--kadov-resources-begin{{-->
<p>[Team Fortress Classic game mod]</p>
<!--}}kadov-resources-end-->
</div>

<!--(End Resources)=================================================-->


<script language=JavaScript><!--
function showpay() {
 {
 var a = 0
 var b = 0
 var c = 0
 var d = 0
 var e = 0
 var f = 0
 var g = 0
 var h = 0
 var i = 0
 var j = 0
 var k = 0
 var l = 0
 var m = 0
 var n = 0
 var o = 0
 var p = 0
 var q = 0
 if (document.calc.a.checked)
 var a = parseInt(document.calc.a.value);
 if (document.calc.b.checked)
 var b = parseInt(document.calc.b.value);
 if (document.calc.c.checked)
 var c = parseInt(document.calc.c.value);
 if (document.calc.d.checked)
 var d = parseInt(document.calc.d.value);
 if (document.calc.e.checked)
 var e = parseInt(document.calc.e.value);
 if (document.calc.f.checked)
 var f = parseInt(document.calc.f.value);
 if (document.calc.g.checked)
 var g = parseInt(document.calc.g.value);
 if (document.calc.h.checked)
 var h = parseInt(document.calc.h.value);
 if (document.calc.i.checked)
 var i = parseInt(document.calc.i.value);
 if (document.calc.j.checked)
 var j = parseInt(document.calc.j.value);
 if (document.calc.k.checked)
 var k = parseInt(document.calc.k.value);
 if (document.calc.l.checked)
 var l = parseInt(document.calc.l.value);
 if (document.calc.m.checked)
 var m = parseInt(document.calc.m.value);
 if (document.calc.n.checked)
 var n = parseInt(document.calc.n.value);
 if (document.calc.o.checked)
 var o = parseInt(document.calc.o.value);
 if (document.calc.p.checked)
 var p = parseInt(document.calc.p.value);
 if (document.calc.q.checked)
 var q = parseInt(document.calc.q.value);
 document.calc.access.value = a + b + c + d + e + f + g + h + i + j + k + l + m + n + o + p + q;
 }

// payment = principle * monthly interest/(1 - (1/(1+MonthlyInterest)*Months))

}


function calcLevels() {
var mask = 1;
var lev = parseInt(document.calc.access.value);

if ( (lev & mask) != 0 ) document.calc.a.checked = true;
else document.calc.a.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.b.checked = true;
else document.calc.b.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.c.checked = true;
else document.calc.c.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.d.checked = true;
else document.calc.d.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.e.checked = true;
else document.calc.e.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.f.checked = true;
else document.calc.f.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.g.checked = true;
else document.calc.g.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.h.checked = true;
else document.calc.h.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.i.checked = true;
else document.calc.i.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.j.checked = true;
else document.calc.j.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.k.checked = true;
else document.calc.k.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.l.checked = true;
else document.calc.l.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.m.checked = true;
else document.calc.m.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.n.checked = true;
else document.calc.n.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.o.checked = true;
else document.calc.o.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.p.checked = true;
else document.calc.p.checked = false;

mask = mask << 1;
if ( (lev & mask) != 0 ) document.calc.q.checked = true;
else document.calc.q.checked = false;

}

// --></script>

<h1>&nbsp;</h1>

<p>&nbsp;</p>

<form name=calc
            method=POST
            action="addadmin.php"
            style="width: 100%;">
<!--(Table)=========================================================-->
<table x-use-null-cells
            style="x-cell-content-align: top;
       margin-left: 40px;
       border-spacing: 0px;
       width: 81.572%;"
            width=81.572%
            cellspacing=0>
<col style="width: 14.16%;">
<col style="width: 14.289%;">
<col style="width: 35.86%;">
<col style="width: 35.235%;">

<tr valign=top>
      <td colspan=1 rowspan=1      style="background-color: #000000; padding-right: 10px; padding-left: 10px; border-top-style: Solid; border-top-color: #ffffff; border-right-width: 2px; border-right-color: #ffffff; border-right-style: Solid; border-bottom-width: 1px; border-bottom-style: Solid; border-bottom-color: #ffffff; border-top-width: 1px; padding-top: 5px; padding-bottom: 5px; x-cell-content-align: center;"      valign=middle      bgcolor=#000000      width=14.16%>
            <p style="color: #ffffff; font-weight: bold;">Grant Access?</p>
      </td>
      <td style="background-color: #000000; padding-right: 10px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; border-top-width: 1px; border-top-color: #ffffff; border-top-style: Solid; border-right-style: Solid; border-right-color: #ffffff; border-right-width: 2px; border-bottom-color: #ffffff; border-bottom-style: Solid; border-bottom-width: 1px;"      bgcolor=#000000      width=14.289%>
            <p style="color: #ffffff; font-weight: bold;">Access Level</p>
      </td>
      <td colspan=1      rowspan=1      style="background-color: #000000; padding-right: 10px; padding-left: 10px; border-top-style: Solid; border-top-color: #ffffff; border-bottom-style: Solid; border-bottom-color: #000000; border-bottom-width: 1px; border-top-width: 1px; padding-top: 5px; padding-bottom: 5px;"      bgcolor=#000000      width=35.86%>
            <p style="font-weight: bold; color: #ffffff;">Commands Allowed</p>
      </td>
      <td style="background-color: #000000; padding-right: 10px; padding-left: 10px; border-top-style: Solid; border-top-color: #ffffff; border-bottom-style: Solid; border-bottom-color: #000000; border-bottom-width: 1px; border-top-width: 1px; padding-top: 5px; padding-bottom: 5px;"      bgcolor=#000000      width=35.235%>
            <p style="font-weight: bold; color: #ffffff;">&nbsp;</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p>&nbsp;</p>
      </td>
      <td class="column1" width="14.289%">
            <p style="font-size: 10pt;">public commands</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_listmaps</p>
            <p>admin_nextmap</p>
            <p>admin_messagemode</p>
            <p>admin_nomessagemode</p>
            <p>admin_timeleft</p>
            <p>admin_userlist</p>
            <p>admin_version</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>say currentmap</p>
            <p>say nextmap</p>
            <p>say timeleft</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=a value=1></p>
      </td>
      <td class="column1" width="14.289%">
            <p>1</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_vote_restart</p>
            <p>say mapvote</p>
            <p>say rockthevote</p>
            <p>admin_restartround</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>say  vote &lt;map&gt;</p>
            <p>admin_vote_kick</p>
            <p>admin_vote_map</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=b value=2></p>
      </td>
      <td class="column1" width="14.289%">
            <p>2</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_cancelvote</p>
            <p>admin_denymap</p>
            <p>admin_restartround</p>
            <p>say cancelvote</p>
            <p>say denymap</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_fraglimit</p>
            <p>admin_map</p>
            <p>admin_startvote</p>
            <p>admin_timelimit</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=c value=4></p>
      </td>
      <td class="column1" width="14.289%">
            <p>4</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>

      </td>
      <td class="column2b" width=35.235%>
            <p>admin_reload</p>
      </td>
</tr>
      
<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox      name=d value=8></p>
      </td>
      <td class="column1" width="14.289%">
            <p>8</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_pause</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_unpause</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=e value=16></p>
      </td>
      <td class="column1" width="14.289%">
            <p>16</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_pass</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_nopass</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=f value=32></p>
      </td>
      <td class="column1" width="14.289%">
            <p>32</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_friendlyfire</p>
            <p>admin_gravity</p>
            <p>admin_restrict</p>
            <p>admin_restrictmenu</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_unrestrict</p>
            <p>admin_teamplay</p>
            <p>admin_balance</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=g value=64></p>
      </td>
      <td class="column1" width="14.289%">
            <p>64</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_chat</p>
            <p>admin_say</p>
            <p>admin_ssay</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_csay</p>
            <p>admin_psay</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=h value=128></p>
      </td>
      <td class="column1" width="14.289%">
            <p>128</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_slap</p>
            <p>admin_slay</p>
            <p>admin_ct (
            <a class=glossterm x-use-popup=#POPUP158253672 x-popup-type=expanding href="javascript:kadovTextPopup(this)" id=HotSpot39381>CS</a><!--begin!kadov{{--><script type="text/javascript" language=JavaScript1.2><!--
                          kadovTextPopupInit('HotSpot39381');
             //--></script><!--}}end!kadov--> )</p>
            
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_t (CS)</p>
            <p>admin_slayteam</p>
            <p>admin_kick</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=i value=256></p>
      </td>
      <td class="column1" width="14.289%">
            <p>256</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width="35.86%">
            <p>admin_ban</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_unban</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=j value=512></p>
      </td>
      <td class="column1" width="14.289%">
            <p>512</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_cfg</p>
            <p>admin_servercfg</p>
      </td>
      <td class="column2b" width="35.235%"S>
            <p>admin_hostname</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=k value=1024></p>
      </td>
      <td class="column1" width="14.289%">
            <p>1024</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>(unused)</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>&nbsp;</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=l value=2048></p>
      </td>
      <td class="column1" width="14.289%">
            <p>2048</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_gag</p>
      </td>
      <td class="column2b" width=35.235%>
            <p>admin_ungag</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=m value=4096></p>
      </td>
      <td class="column1" width="14.289%">
            <p>4096</p>
      </td>
      <td colspan=2 rowspan=1 class="column2b" width=71.095%>
            <p><span style="font-style: italic;">makes player immune to admin commands damage</span></p>
      </td>
      <td_null>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=n value=8192></p>
      </td>
      <td class="column1" width="14.289%">
            <p>8192</p>
      </td>
      <td colspan="1" rowspan="1" class="column2a" width=35.86%>
            <p>admin_godmode</p>
            <p>admin_noclip</p>
            <p>admin_stack</p>
            <p>admin_teleport</p>
            <p>admin_userorigin</p>
            <p>admin_blue ( <a class=glossterm x-use-popup=#POPUP158268828 x-popup-type=expanding href="javascript:kadovTextPopup(this)" id=HotSpot22629>TFC</a><!--begin!kadov{{--><script type="text/javascript" language=JavaScript1.2><!--
                        kadovTextPopupInit('HotSpot22629');
             //--></script><!--}}end!kadov-->  )</p>
            <p>admin_green (TFC)</p>
            <p>admin_red (TFC)</p>
            <p>admin_yellow (TFC)</p>
            <p>admin_autokick</p>
            <p>admin_buytime</p>
            <p>admin_autoteambalance</p>
            <p>admin_c4timer</p>
            <p>admin_c4timer</p>
            <p>admin_chattime</p>
            <p>admin_consistency</p>
            <p>admin_fadetoblack</p>
            <p>admin_flashlight</p>
            <p>admin_footsteps</p>
            <p>admin_forcecamera</p>


      </td>
      <td class="column2b" width=35.235%>
            <p>admin_forcechasecam</p>
            <p>admin_freezetime</p>
            <p>admin_ghostfrequency</p>
            <p>admin_hpenalty</p>
            <p>admin_limitteams</p>
            <p>admin_kickpercent</p>
            <p>admin_maxrounds</p>
            <p>admin_mapvoteratio</p>
            <p>admin_playerid</p>
            <p>admin_restrict</p>
            <p>admin_roundtime</p>
            <p>admin_startmoney</p>
            <p>admin_tkpunish</p>
            <p>admin_winlimit</p>
            <p>admin_fun</p>
            <p>admin_disco</p>
            <p>admin_llama</p>
            <p>admin_unllama</p>
            <p>admin_listspawn</p>
            <p>admin_movespawn</p>
            <p>admin_removespawn</p>
            <p>admin_spawn</p>
      </td>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=o value=16384></p>
      </td>
      <td class="column1" width="14.289%">
            <p>16384</p>
      </td>
      <td colspan=2 rowspan=1 class="column2b" width=71.095%>
            <p style="font-style: italic;">flags this user name as a reserved nickname</p>
      </td>
      <td_null>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=p value=32768></p>
      </td>
      <td class="column1" width="14.289%">
            <p>32768</p>
      </td>
      <td colspan=2 rowspan=1 class="column2b" width=71.095%>
            <p style="font-style: italic;">allow this user to use a reserved server spot</p>
      </td>
      <td_null>
</tr>

<tr valign=top>
      <td colspan="1" rowspan="1" class="column0" valign="middle" width="14.16%">
            <p><input type=checkbox name=q value=65536></p>
      </td>
      <td class="column1" width="14.289%">
            <p>65536</p>
      </td>
      <td colspan=2 rowspan=1      class="column2b" width=71.095%>
            <p>admin_rcon&nbsp;&nbsp;(use with caution)</p>
            <p>admin_execall</p>
            <p>admin_execclient</p>
            <p>admin_execteam</p>
      </td>
      <td_null>
</tr>
</table>

<p>&nbsp;</p>

<p><input type="button" value="Calculate Access Right"  onClick="showpay()">&nbsp;&nbsp;&nbsp;<br><b>Access Right for users.ini:</b>&nbsp;&nbsp;&nbsp;<input type="text" name="access"></p>

<p><input type="button" value="Calculate Levels from Access Right"  onClick="calcLevels()">&nbsp;&nbsp;&nbsp;
<!--<br><b>Access Right from users.ini:</b>&nbsp;&nbsp;&nbsp;<input type="text" name="accRight">--></p>

<p>&nbsp;</p>

</body>

</html>

----END CODE-----------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------



Thanks

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-12-19 at 23:53:58ID21248119
Topic

PHP Scripting Language

Participating Experts
3
Points
50
Comments
8

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Stylesheets
    I am using LINK tag to my stylesheets. All works great in IE 4 but not in Navigator 4. My code is <LINK REL=STYLESHEET TYPE="text/css" HREF="style/mkt.css"> and my stylesheet is BODY {font: 12 pt Arial} H1 {font: 22 pt Times; color: navy; text-a...
  2. Margin
    Hello, I have a problem. For some reason MSIE and Mozilla browser does not understand (they don't do anything) with the margin tags for the body. <style type="text/css"> body {margin-left:10%; margin-right:10%;} h1 {margin-left: 10%} </style> Wit...
  3. Stylesheet issue
    Hello, I'm trying to modify this style sheet so that my table can be centered on the page but for some reason it's not doing it for me. Attached is my stylesheet and below is the html for using it: <div class="box"><h3>NVGA Rankings</h3> <form ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: php-webdesignPosted on 2004-12-20 at 02:55:58ID: 12865501

maybe do it like this:

1st page -> post to new windows (_blank) and set all the value's in a cookie (this will be the 2nd page)
2nd page -> post to the original window (the name you gave to it) and get all the value's from the cookie

voila

 

by: fruglePosted on 2004-12-20 at 03:18:23ID: 12865581

(fairly) simple javascript.

open popup window with named handle

post form data to window by handle (form ... target="namedWindow")

perform write result to javascript variable

pass variable to document.opener.form.textboxname

self.close() on named window.

see http://tech.irt.org/articles/script5.htm for more info.

Mike

 

by: CrewXpPosted on 2004-12-20 at 10:42:17ID: 12869178

Thats my exact second page, what exactly needs changing on that. I have action addadmin.php, but it doesn't send anything to it. on target is that addadmin.php? or addadminWindow

I'm still reading up on the javascript stuff so bear with me. Thx

 

by: CrewXpPosted on 2004-12-20 at 11:33:08ID: 12869626

ok I got the popup to come up for calculate.php using javascript, but how do I get the form variable generated on the second page to post to the first? I added target="addadmin.php" under the post variable (like where the action variable is), but it still posts to the same page.

 

by: jkna_gunnPosted on 2004-12-20 at 13:48:43ID: 12870836

on 1st page you use javascript to open calculate.php thats fine. also on this first page you should have a form with a name and an input you want to copy the value to from calculate.php

on 2nd page the button that you click on should have a javascript method attached to the onclick() method. (which it looks like you do).  at the end of this js method you will call a line like this

window.opener.document.<formname>.<inputName>.value = <result>

where <> indicates the names of the appropriate variables.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...