apache510 Posted January 31, 2009 Share Posted January 31, 2009 I can not get this contribution to work correctly. I have narrowed the problem down to one file, the admin/stats_sales_csv.php file. The section that I can not get to work is the following section: <form action="<?php echo $PHP_SELF; ?>" method="post" name="reportit"> <table border="0" width="60%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading" width="500" nowrap><?php echo HEADING_TITLE; ?></td> <td class="main" align="right"> </td> </tr> <tr> <td class="main" align="left" colspan='2'><BR><BR><?php echo TEXT_FACTOR . ":";?> <select name = "multiplex"> <option value="10" <?php if ($multiplex == 10) echo "selected";?>>10</option> <option value="25" <?php if ($multiplex == 25) echo "selected";?>>25</option> <option value="50" <?php if ($multiplex == 50) echo "selected";?>>50</option> <option value="100" <?php if ($multiplex == 100) echo "selected";?>>100</option> <option value="500" <?php if ($multiplex == 500) echo "selected";?>>500</option> <option value="1000" <?php if ($multiplex == 1000) echo "selected";?>>1000</option> <option value="10000" <?php if ($multiplex == 10000) echo "selected";?>>10000</option> </select> <input type="submit" name="Submit" value="Submit"> </td> </tr> </table> </form> </td> </tr> <?php if ($multiplex != '') { The problem is that the varible $multiplex never gets a value so the code never executes. I have gone in and added the code: <?php $multiplex = 10; ?> Right before the varible $multilex is checked so that I can get the graphs. Anyone have any idea why this will not work? Quote Link to comment Share on other sites More sharing options...
apache510 Posted January 31, 2009 Author Share Posted January 31, 2009 (edited) Solved the problem. Apparently the contribution was missing a line of code. I inserted the following: $multiplex = $_POST["multiplex"]; Right be for the line: if ($multiplex !='') { So it looks like this: <?php $multiplex = $_POST["multiplex"]; if ($multiplex !='') { Now it works perfectly!!! Edited January 31, 2009 by apache510 Quote Link to comment Share on other sites More sharing options...
apache510 Posted January 31, 2009 Author Share Posted January 31, 2009 Solved the problem. Apparently the contribution was missing a line of code. I inserted the following: $multiplex = $_POST["multiplex"]; Right be for the line: if ($multiplex !='') { So it looks like this: <?php $multiplex = $_POST["multiplex"]; if ($multiplex !='') { Now it works perfectly!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.