Jump to content
Sign in to follow this  
apache510

stats_sales_csv

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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 by apache510

Share this post


Link to post
Share on other sites

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!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×