473,785 Members | 2,354 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

resetting to ALL

60 New Member
hi,

i managed to reset the $_GET[fac] to $_POST[fac] passed from previous page, but for some reason when i type in a [fac] in the form it resets back to all. i do not want this to happen... can someone look at my code and tell me how to prevent this?

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3.  
  4. <STYLE type="text/css">
  5.         TD{font-family:ARIAL;font-size:11px;color:#666666;}
  6.         BODY{font-family:ARIAL;font-size:11px;color:#666666;background-color:#eeeeee;margin-top:40px;margin-bottom:0px;margin-left:40px;margin-right:0px;}
  7.         FORM{display:inline;}    
  8.         A:LINK, A:VISITED{color:#6699cc;text-decoration:none;}
  9.         A:HOVER{text-decoration:underline;color:#CCCCCC;}
  10.         .HOMETEXT{font-size:14px;}
  11.         .ITEMNAME{font-size:14px;font-weight:BOLD;}
  12.         /*.WHITELINK{color:#ffffff;font-size:10px;}*/
  13.         .INPUT{border-color:#66CCFF;border-width:1px;border-style:solid;background-color:#eeeeee;font-size:10px;}
  14.         .INPUT2{background-image:url(webtd_grass_matrix_pic4.jpg);color:#666666;border-top:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;border-right:1px solid #BBBBBB; border-left:1px solid #BBBBBB; font-family:copperplate gothic light;font-size:7pt;}
  15.         .BUTTON{border-color:#99CCFF;border-width:1px;border-style:solid;}
  16.         .BOLD{color:#666666;font-family:Arial, Tahoma, Helvetica, sans-serif;font-size:8pt;font-weight:BOLD;}
  17.         .BOLDLARGE{color:#666666;font-size:12pt;font-weight:BOLD;}
  18.         .CURRENTPAGE{color:#666666;font-size:8pt;font-weight:BOLD;}
  19.         .ERROR{color:#cc0033;font-size:8pt;font-weight:BOLD;}
  20.         .MENUCELL{height:24px;width:80px;text-align:center;font-weight:BOLD;color:#FFFFFF;border-top:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;border-right:1px solid #BBBBBB;}
  21.         .MENUCELLSTART{height:24px;width:80px;border:1px solid #BBBBBB;text-align:center;font-weight:BOLD;color:#FFFFFF;}
  22.         .SPACE1{padding-left:20px;}
  23.         .BORDER{background-color:#EEEEEE;color:#666666;border-top:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;border-right:1px solid #BBBBBB;height:24px;padding-left:16px;}
  24.         .BORDERNEW{background-color:#EEEEEE;color:#666666;border-top:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;border-left:1px solid #BBBBBB;border-right:1px solid #BBBBBB;height:170px;padding-left:0px;}
  25.         .BGWHITE{background-color:#FFFFFF;color:#666666;border-top:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;border-left:1px solid #BBBBBB;border-right:1px solid #BBBBBB;height:170px;padding-left:20px;}
  26.         .BORDER1{border-bottom:1px solid #BBBBBB;}
  27.         .BORDER2{background-color:#EEEEEE;color:#666666;border:1px solid #BBBBBB;}
  28.         .BORDER3{background-color:#000000;color:#666666;border-top:1px solid #ffffff;border-bottom:1px solid #ffffff;border-right:1px solid #ffffff;height:44px;padding-left:16px;}
  29.         .HEADER{background-color:#EEEEEE;color:#666666;border:1px solid #BBBBBB;height:24px;font-weight:BOLD;padding-left:20px;}
  30.         .PRODCELL{border-left:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;background-color:#FFFFFF;}
  31.         .HEADER1{background-color:#EEEEEE;color:#666666;border-left:1px solid #BBBBBB;border-top:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;height:24px;font-weight:BOLD;padding-left:20px;}
  32.         .HEADER5{width:130px;color:#666666;background-color:#EEEEEE;border-top:1px solid #BBBBBB;border-right:1px solid #BBBBBB;height:24px;}
  33.         .PRODIMGLGCELL{width:300px;height:295px;background-color:#EEEEEE;border-left:1px solid #BBBBBB;border-right:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;vertical-align:top;text-align:center;}
  34.         .PRODIMGSMCELL{width:130px;height:125px;background-color:#EEEEEE;border-left:1px solid #BBBBBB;border-right:1px solid #BBBBBB;border-bottom:1px solid #BBBBBB;vertical-align:top;text-align:center;}
  35.         .PRODIMGSM{border:1px solid white;height:120px;width:120px;align:middle;}
  36.         .PRODIMGLG{border:1px solid #BBBBBB;height:290px;width:290px;align:middle;}
  37.         .CATIMG{width:120px;height:120px;border:1px solid #BBBBBB;}
  38.         .stylegreyblue {color: #669999}
  39.         .stylelightblue {color: ##DEE7F7}
  40.         .styleblack {color:#000000}
  41.         .stylegreyblack {color:#444444}
  42.         .styledarkpink {color: #990033}
  43.         .styleslateblue {color: #008b8b}
  44.         .stylewhite {color: #ffffff}
  45.         .input.btn {color:#666666; font: bold small 'trebuchet ms',helvetica,sans-serif; 
  46.         background-color: #eeeeee;
  47.         border:1px solid;   
  48.         border-color: #66CCFF #66CCFF #66CCFF #66CCFF; 
  49.         font-size:11px; 
  50.         }  
  51.  
  52.  
  53. .style17 {color: #666666}
  54. .style18 {color: #CC6699}
  55. .style19 {color: #CCCCCC}
  56. .style22 {font-family: Verdana; color: #CCCCCC;}
  57. .style23 {color: #66CCFF}
  58. .style24 {
  59.     color: #99FF66;
  60.     font-weight: bold;
  61. }
  62. .style26 {color: #99FF66}
  63. .style27 {color: #999999}
  64. .stylered {color: #FF0000}
  65. .stylegreen {color: #00FF00}
  66.  
  67. </STYLE>
  68.  
  69. </head>
  70.  
  71.  
  72.  
  73. <?php
  74. #if(isset($_POST['submit'])) {
  75. #destroy_GET();
  76. #}
  77. ?>
  78.  
  79.  
  80. <?php
  81. if(!isset($_POST['submit'])  AND ($_POST['fac'] ='ALL'))
  82. {
  83. SETTER();
  84. }
  85. else
  86. {
  87. SETTER2();
  88. }
  89. ?>
  90.  
  91.  
  92. <?php
  93. #function destroy_GET() 
  94. #{    
  95. #    unset($_GET['fac']);
  96. #}
  97.  
  98. ?>
  99.  
  100.  
  101. <?php
  102. function SETTER()
  103. {
  104. $_POST['fac'] = $_GET['fac']; 
  105. $_POST['SRG_GROUP'] = $_GET['SRG_GROUP']; 
  106. }
  107. ?>
  108.  
  109.  
  110. <?php
  111. function SETTER2()
  112. {
  113. echo "POST SUBMIT SET";
  114. #$_GET['fac'] = $_POST['fac']; 
  115. #$_POST['fac'] = $_POST['fac']; 
  116. #$_POST['SRG_GROUP'] = $_POST['SRG_GROUP']; 
  117. }
  118. ?>
  119.  
  120.  
  121. <BODY>
  122. <!---
  123. <body background ="silverswimmer.jpg">
  124. -->
  125.  
  126.  
  127.  
  128. <?php
  129. if(empty($_POST['fac']))
  130. {
  131. echo "posted fac empty";
  132. $count=$_GET['count'];
  133. $fac2= strtoupper($_GET['fac']);
  134. $SRG_GROUP=$_GET['SRG_GROUP'];
  135. $SFT=$_GET['SFT'];
  136. echo "passed fac is:";
  137. echo $_GET['fac'];
  138. echo "passed SRG is:";
  139. echo $_GET['SRG_GROUP'];
  140. }
  141. else
  142. {
  143. echo "posted fac NOT empty";
  144. }
  145. echo "<br>";
  146. ?>
  147.  
  148.  
  149. <table width = "600" height = "170" bordercolor = "#ffffff"  border = "1" cellpadding = "0" cellspacing = "0" class = "BORDERNEW">
  150. <tr>
  151. <!---
  152. <td background = "ER_SIGN2_IMP0136074.JPG"> 
  153. -->
  154. <td background = "TOPBORDER.JPG"> 
  155.  
  156.  
  157.  
  158.  
  159.  
  160. <table width = "240" height = "75" bordercolor = "#ffffff"  border = "1" cellpadding = "0" cellspacing = "0" class = "border3">
  161. <tr bordercolor="#ffffff" bgcolor="#eeeeee" align = "center">
  162. <td align = "center" width = "70" bordercolor = "#eeeeee"> 
  163. <span class="stylered">
  164. <font face = "arial" size = "20">
  165. <b>ER</b>
  166. </font>
  167. </span>
  168. </td>
  169.  
  170. <td align = "left" bgcolor="#808080" bordercolor = "#808080"> 
  171. <span class="stylewhite">
  172. <font face = "arial" size = "4">
  173. <b> volumes</b>
  174. </font>
  175. </span>
  176. </td>
  177. </tr>
  178. </table>
  179.  
  180.  
  181. <!---
  182. <hr align = "left" width = "800" size = 3 color = #666666>
  183. -->
  184.  
  185.  
  186.  
  187. </td>
  188. </tr>
  189. </table>
  190.  
  191.  
  192.  
  193.  
  194. <?php
  195. print "<span class='style17'><font face = 'arial' size = '1'>";
  196. if(empty($_POST['fac']) AND empty($_GET['fac']))
  197. {
  198. echo "facility code: all";
  199. print "&nbsp &nbsp &nbsp ";
  200. echo "SRG group: " .$_GET['SRG_GROUP'];
  201. print "</font></span>";
  202. }
  203. elseif(empty($_POST['fac']) AND !empty($_GET['fac']))
  204. {
  205. echo "facility code GET: " .strtoupper($_GET['fac']);
  206. print "&nbsp &nbsp &nbsp ";
  207. echo "SRG group: " .$_GET['SRG_GROUP'];
  208. print "</font></span>";
  209. }
  210. else
  211. {
  212. echo "facility code POST: " .strtoupper($_POST['fac']);
  213. print "&nbsp &nbsp &nbsp ";
  214. echo "SRG group: " .$_POST['SRG_GROUP'];
  215. print "</font></span>";
  216. }
  217. ?>
  218.  
  219.  
  220.  
  221. <?php
  222. if(empty($_POST['fac']) AND !empty($_GET['fac']))    
  223. {
  224. echo "first query";
  225. }
  226.  
  227. elseif(empty($_POST['fac']) AND empty($_GET['fac']))
  228. {
  229. echo "second query";
  230. }
  231.  
  232. elseif(empty($_POST['fac']) AND isset($_GET['fac']) AND empty($_GET['fac']))
  233. {
  234. echo "third query";
  235. }
  236.  
  237. elseif($_POST['fac'] = ALL)
  238. {
  239. echo "fourth query";
  240. }
  241.  
  242. elseif($_GET['fac'] = ALL)
  243. {
  244. echo "fifth query";
  245. }
  246.  
  247. else
  248.  
  249. {
  250. echo "sixth query";
  251. }
  252. ?>
  253.  
  254.  
  255.  
  256.  
  257.  
  258. <br>
  259. <br>
  260.  
  261.  
  262. <table width = "600" height = "170" bordercolor = "#ffffff"  border = "1" cellpadding = "0" cellspacing = "0" class = "BGWHITE">
  263. <tr>
  264. <td bgcolor = "#ffffff">
  265. <br>
  266.  
  267.  
  268. <form method="post" action="<?php echo $PHP_SELF;?>">
  269. <span style='color: #008b8b; font-size: 10pt; font-family: arial'>
  270. <b>facility code </b><input type="text" size="12" class = "INPUT" maxlength="3" name="fac" value="<?php echo strtoupper($_POST['fac']);?>"
  271. </span>
  272. <span style='color: #008b8b; font-size: 10pt; font-family: arial'>
  273. &nbsp <b>  SRG group </b>
  274. </span>
  275.  
  276.  
  277.  
  278. <?php
  279. ########################################################
  280. #this dropdown remembers the values selected after form is posted
  281. #by processing each element as i dynamically output it
  282. ########################################################
  283. echo "<select name='SRG_GROUP' class = 'INPUT'>";
  284.  $values = 
  285.   array 
  286.   ( 
  287.       'Charity' => 'Charity' 
  288.     , 'Insured' => 'Insured' 
  289.     , 'Other' => 'Other' 
  290.     , 'Self Pay' => 'Self Pay'
  291.   ); 
  292. $selected = $_POST['SRG_GROUP'];
  293.  
  294. foreach( $values as $val => $text ) 
  295.   echo '<option value="', htmlentities($val), '"'; 
  296.  
  297.   if( $val == $selected ) 
  298.   { 
  299.     echo ' selected="selected"'; 
  300.   }   
  301.   echo '>', htmlentities($text), '</option>'; 
  302. }
  303. echo "</select>";
  304. ?>
  305.  
  306.  
  307. <input type="submit" value=' go ' name='submit' class = 'btn'></form>
  308.  
  309.  
  310. <?php
  311. ########################################################
  312. #end of this dropdown remembers the values selected after form is posted
  313. #by processing each element as i dynamically output it
  314. ########################################################
  315. ?>
  316.  
  317.  
  318. <br><br>
  319. </td>
  320. </tr>
  321. <tr>
  322. <td>
  323.  
  324.  
  325.  
  326.  
  327. <!---
  328. <table width = 1000>
  329. <tr>
  330. <td>
  331.     <img src="coniferlogo.jpg" alt="Conifer" border="0">
  332.  </td>
  333. <td align = "bottom">
  334.        <img src="grand_canyon.jpg" alt="test" border="0">
  335. </tr>
  336. </table>
  337. -->
  338.  
  339.  
  340. <?php
  341. #<img src="coniferlogo.jpg"  alt="conifer">
  342. #################################################
  343. #this one lists the days of the week starting dynamically with the current day
  344. #along with the shift list and count after each day
  345. #################################################
  346. $fac = $_POST["fac"];
  347. $SRG_GROUP = $_POST["SRG_GROUP"];
  348. #print "<span style='color: #008b8b; font-size: 9pt; font-family: arial'><b><br>";
  349. #echo "faciity code: " .$fac;
  350. #print "</b></span><br>";
  351. #print "<span style='color: #008b8b; font-size: 9pt; font-family: arial'><b>";
  352. #echo "SRG group: " .$SRG_GROUP;
  353. #print "</b></span><br>";
  354. #print "<br>";
  355. ?>
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362. <?php
  363.  
  364.  
  365. /* 
  366. if(empty($_POST['fac']))
  367. {
  368. print "<span style='color: #008b8b; font-size: 12pt; font-family: arial'><b>";
  369. echo "no facility posted from self";
  370. echo $_GET['fac'];
  371. print "</b></span><br>";
  372. }
  373. else
  374. {
  375. echo "facility posted from self";
  376. }
  377.  
  378.  
  379. if(empty($_POST['fac']))
  380. {
  381. echo "1";
  382. echo $_GET['SRG_GROUP'];
  383. }
  384. else
  385. {
  386. echo "2";
  387. }
  388.  
  389. if(!empty($_GET['fac']))
  390. {
  391. echo "get not empty";
  392. }
  393. else
  394. {
  395. echo "get is empty";
  396. }
  397.  
  398. if(empty($_POST['fac']) AND !empty($_GET['fac']))    
  399. {
  400. echo "first query";
  401. }
  402. elseif(empty($_POST['fac']) AND !isset($_GET['fac']) AND empty($_GET['fac']))
  403. {
  404. echo "second query";
  405. }
  406.  
  407. elseif(empty($_POST['fac']) AND isset($_GET['fac']) AND empty($_GET['fac']))
  408. {
  409. echo "third query";
  410. echo $_GET['SRG_GROUP'];
  411. }
  412. else
  413. {
  414. echo "other query";
  415. }
  416. */
  417.  
  418.  
  419.  
  420. $test = array('sunday','monday','tuesday','wednesday','thursday','friday', 'saturday');
  421. $day=date('w'); //Numeric representation of the day of the week  0 (for Sunday) through 6 (for Saturday)
  422. $key=each($test);
  423. while ($key['key']!=$day)
  424.     $key=each($test);
  425. prev($test);
  426. prev($test);
  427. for ($i=0;$i<7;$i++)
  428. {
  429.     $count = (next($test)) ? current($test) : reset($test);
  430.  
  431. #print "<br>";
  432.  
  433. print "<span style='color: #008b8b; font-size: 12pt; font-family: arial'><b><br>";
  434. echo $count;
  435. print "<hr size = 1 width = 300 align = left color = #666666>";
  436. print "</b></span>";
  437.  
  438. #print "<br>";
  439. #echo "<table><tr><th>shift</th><th>count</th></tr><tr><td>";
  440.  
  441. #################################################
  442. #DETAIL SECTION
  443. #################################################
  444. #print "details: ";
  445. $conn=odbc_connect('ERVOLUMES','','');
  446. if (!$conn)
  447.   {exit("Connection Failed: " . $conn);}
  448. #$sql="SELECT admitday, shift, infocount FROM qry_sum WHERE admitday = 'sunday'";
  449. #$sql="SELECT admitday, shift, infocount FROM qry_sum WHERE admitday ='".$count."'";
  450.  
  451.  
  452.  
  453. if(empty($_POST['fac']) AND !empty($_GET['fac']))    
  454. {
  455. $sql="SELECT admitday, shift, SRG_GROUP, infocount FROM qry_sum2 WHERE SRG_GROUP = '".$_GET['SRG_GROUP']."' AND hospitalcode LIKE '".$_GET['fac']."' AND admitday ='".$count."'";
  456. $sql2="SELECT sum(infocount) AS ttl FROM qry_sum WHERE SRG_GROUP = '".$_GET['SRG_GROUP']."' AND hospitalcode LIKE '".$_GET['fac']."' AND admitday ='".$count."'";
  457. $sql3="SELECT sum(infocount) AS ttl_GRAND FROM qry_sum WHERE SRG_GROUP = '".$_GET['SRG_GROUP']."' AND hospitalcode LIKE '".$_GET['fac']."'";
  458. }
  459.  
  460. elseif(empty($_POST['fac']) AND empty($_GET['fac']))
  461. {
  462. $sql="SELECT admitday, shift, SRG_GROUP, infocount FROM qry_sum3 WHERE SRG_GROUP = '".$SRG_GROUP."' AND admitday ='".$count."'";
  463. $sql2="SELECT sum(infocount) AS ttl FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode IS NOT NULL AND admitday ='".$count."'";
  464. $sql3="SELECT sum(infocount) AS ttl_GRAND FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode IS NOT NULL";
  465. }
  466.  
  467. elseif(empty($_POST['fac']) AND isset($_GET['fac']) AND empty($_GET['fac']))
  468. {
  469. #$sql="SELECT admitday, shift, SRG_GROUP, infocount FROM qry_sum3 WHERE SRG_GROUP LIKE '".$_GET['SRG_GROUP']."' AND admitday ='".$count."'";
  470. $sql="SELECT admitday, shift, SRG_GROUP, infocount FROM qry_sum3 WHERE SRG_GROUP = '".$SRG_GROUP."' AND admitday ='".$count."'";
  471. $sql2="SELECT sum(infocount) AS ttl FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode IS NOT NULL AND admitday ='".$count."'";
  472. $sql3="SELECT sum(infocount) AS ttl_GRAND FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode IS NOT NULL";
  473. }
  474.  
  475. elseif($_POST['fac'] = "ALL")
  476. {
  477. $sql="SELECT admitday, shift, SRG_GROUP, infocount FROM qry_sum3 WHERE SRG_GROUP = '".$SRG_GROUP."' AND admitday ='".$count."'";
  478. $sql2="SELECT sum(infocount) AS ttl FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode IS NOT NULL AND admitday ='".$count."'";
  479. $sql3="SELECT sum(infocount) AS ttl_GRAND FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode IS NOT NULL";
  480. }
  481.  
  482. else
  483. {
  484. $sql="SELECT admitday, shift, SRG_GROUP, infocount, hospitalcode FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode LIKE '".$fac."' AND admitday ='".$count."'";
  485. $sql2="SELECT sum(infocount) AS ttl FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode LIKE '".$fac."' AND admitday ='".$count."'";
  486. $sql3="SELECT sum(infocount) AS ttl_GRAND FROM qry_sum WHERE SRG_GROUP = '".$SRG_GROUP."' AND hospitalcode LIKE '".$fac."'";
  487. }
  488.  
  489.  
  490.  
  491. $rs=odbc_exec($conn,$sql);
  492. $rs2=odbc_exec($conn,$sql2);
  493. $rs3=odbc_exec($conn,$sql3);
  494.  
  495. $TTLS=odbc_result($rs2, ttl);
  496. print "<span class='style17'><font face = 'arial' size = '1'>";
  497. echo number_format($TTLS); 
  498. print "&nbsp total &nbsp &nbsp | &nbsp &nbsp </font></span>";
  499.  
  500. print "</font></span>";
  501.  
  502. print "<span class='style17'><font face = 'arial' size = '1'><b>";
  503. if(empty($_POST['fac']))
  504. {
  505. echo "<a href = 'REC.php?count=$count&fac=$_GET[fac]&SRG_GROUP=$_GET[SRG_GROUP]'>VIEW DETAILS</a>";
  506. }
  507. else
  508. {
  509. echo "<a href = 'REC.php?count=$count&fac=$fac&SRG_GROUP=$SRG_GROUP'>VIEW DETAILS</a>";
  510. }
  511. print "</b></font></span>";
  512.  
  513. print "<br>";
  514. if (!$rs)
  515.   {exit("Error in SQL");}
  516. while (odbc_fetch_row($rs))
  517. {
  518.  
  519.  
  520.  
  521.   $SFT=odbc_result($rs, shift);
  522.   $BER=odbc_result($rs, infocount);
  523.   $TTLGRAND=odbc_result($rs3, ttl_GRAND);
  524.   #$TEST = numrows($rs);
  525.  
  526.  
  527. echo "<br><table width = '250' height = '10' align = 'left' border = '0'><tr height = '10'><td width = '200' height = '10'>";
  528. print "<span style='color: #666666; font-size: 9pt; font-family: arial'>";
  529. #echo $SFT;
  530. if(empty($_POST['fac']))
  531. {
  532. echo "<a href = 'REC.php?count=$count&fac=$_GET[fac]&SRG_GROUP=$_GET[SRG_GROUP]&SFT=$SFT'>$SFT</a>";
  533. }
  534. else
  535. {
  536. echo "<a href = 'REC.php?count=$count&fac=$fac&SRG_GROUP=$SRG_GROUP&SFT=$SFT'>$SFT</a>";
  537. }
  538. print "</span>";
  539. echo "</td><td width = '50'>";
  540. print "<span style='color: #666666; font-size: 9pt; font-family: arial'>";
  541. echo number_format($BER);
  542. print "</span>";
  543.   #print "<br>";
  544. echo "</td></tr></table></br>";
  545.  
  546. }
  547. #################################################
  548. # END OF DETAIL SECTION
  549. #################################################
  550.  
  551.  
  552.  
  553.  
  554.     print "<br>";
  555. #echo $count.'<br />';
  556.  
  557. }
  558.  
  559.  
  560. print "<br>";
  561. print "<tr><td bgcolor = '#000000' bordercolor = '#000000'><span style='color: #008b8b; font-size: 12pt; font-family: arial'><br><b>";
  562. echo "grand total: " .number_format($TTLGRAND);
  563. print "<br><br></td></tr></b></span>";
  564.  
  565.  
  566. #echo $TEST;
  567.  
  568.  
  569.  
  570.  
  571.  
  572. ?>
  573.  
  574. <br></td>
  575. </tr>
  576. </table>
  577.  
  578. <br>
  579. <br>
  580.  
  581. </html>
  582.  
  583.  
thanks in advance,
geebee
Feb 11 '09 #1
3 1534
hoopy
88 New Member
I thnk it relates to your conditional statement on your other post.

Try with that fix and see if it works.
Feb 11 '09 #2
Markus
6,050 Recognized Expert Expert
As a general note, post only the code that relates to the question; I for one ain't going to sit here and sift through that code to find an obscure error.
Feb 11 '09 #3
hoopy
88 New Member
Agreed. When you have a bug like this, you can debug it easily enough yourself by echoing variables to the output at different stages until you find the general area of where the issues are occuring.
Feb 11 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2265
by: The Plankmeister | last post by:
Hi... I'm getting to grips with custom error handling, and am wondering if it is possible to somehow reset all the content already sent to the browser, and send some new stuff in its place. For example, if I'm looping through a database, and I've already written 10 records to the browser, and then an error occurs, is it possible to send a command to the browser that makes it drop everything it's received thus far, and then just have...
8
18771
by: riprod | last post by:
Someone in the IIS newsgroup suggest I post this here, so sorry in advance for the cross posting. I have a Win 2003 SP1 with IIS 6 and host about 40 websites, most of them useing ASP/VB with access databases. The server is a Dell Dual 2.4Ghz XEON with 512Mb Ram. Every few days I get the error 'HTTP/1.1 New Session Failed' and the server stops showing the sites. It comes right after a bit and then the error comes back. I
1
1716
by: Frantic3d | last post by:
I just started using Access' Template file "Time & Billing Database" Well among other items I need to change the biggest right now is resetting the Client, Employee, Project ID #'s to start at 1. Is there a simple fix for this? TIA Neil
2
1816
by: DeveloperPDX | last post by:
I am creating a page and I need to add a reset button (like you would with HTML forms). Is there any way to do this other than resetting individual controls? Basically I need to page to return to the state after the OnLoad event
1
3094
by: Matthew Wieder | last post by:
Hi - I wanted to capture the enter button on a form since I have a datagrid with the first column being a delete button and if someone hits enter it deletes the first record. I coded: private void Page_Load(object sender, System.EventArgs e) { Page.RegisterHiddenField("__EVENTTARGET","SomeButtonOnThePage");
3
1764
by: No One | last post by:
This seems to be related to the ViewState error that is now starting to plague ASP.Net apps. When the Application Pool is recycled, the Session seems to be getting reset. When this is done, session information is lost and my app forgets what rules a user has. I'd rather not recode to read this from the database for every page, but I wonder if I have no other choice. Anyone else notice the Session resetting?
1
2383
by: RichardB | last post by:
I am trying to Reset the USB bus. I have a system with various USB devices attached to it including video capture devices. Occasionally some of the USB devices either disappear or fail to operate. Restarting the computer or unplugging and replugging the device corrects this, however this is not a viable solution while the system is running. I'm looking for a way of resetting or re-initializing the USB bus or the USB hub in the hope...
0
1048
by: Padma | last post by:
Hi, I'm working in Visual Studio 2005. I created a simple add-in and installed it. It got added to the 'Tools' menu in the IDE and '.addin file' got copied to '..\My Documents\Visual Studio 2005\Addins'. And the addin works well. When i reset the IDE by 'devenv /resetsettings', addin got removed from the 'Tools' menu. and I need to drag it from the 'Addins' list in 'Tools\Customize..' to 'Tools' menu.
4
4084
by: Ian Davies | last post by:
Hello I am struggling for a solution to clear some fields on my webpage that takes their values from some sessions My solution below works when the button is clicked twice. I sort of know why I have to click it twice to do the job (the first submit resets the sessions but this it too late to change the field values, which requires another submit to pick up the new session values). Problem is I cant think how to accomplish the resetting of...
8
2877
by: Kevin | last post by:
I'm using a form where users can input a bunch of info into unbound text controls that are used in series of calculations. At the bottom is a "reset" button. I want to clear out all of the user inputs on the form by clicking the button. Me.Refresh .requery .repaint do not work. Any suggestions?
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9484
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10350
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9957
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8983
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7505
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5518
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.