1

我有一个要上传多个文件的页面。enctype 设置正确,php.ini 文件允许文件上传。

该页面通过一个 for 循环运行,该循环在每次循环运行中调用 $id。使用它,我创建了以下字段:

<td class="charts">
    <input type="checkbox" name="chartoneuse-{$id}" value="1" checked="checked" /> One-Hour Chart: {$chartone}<br />
    <input type="file" name="chartone-{$id}" id="chartone-{$id}" /><br /><br />
    <input type="checkbox" name="charttwouse-{$id}" value="1" checked="checked" /> Two-Hour Chart: {$charttwo}<br />
    <input type="file" name="charttwo-{$id}" id="charttwo-{$id}" /><br /><br />
    <input type="checkbox" name="chartfouruse-{$id}" value="1" checked="checked" /> Four-Hour Chart: {$chartfour}<br />
    <input type="file" name="chartfour-{$id}" id="chartfour-{$id}" /><br /><br />
    <input type="checkbox" name="chartdayuse-{$id}" value="1" checked="checked" /> Day Chart: {$chartday}<br />
    <input type="file" name="chartday-{$id}" id="chartdaily-{$id}" />
</td>

这也是创建所有 $_POST 字段的方法。

当它运行时,它适用于 1、2、3、4、5、6...但是当它到达 7 时,它看不到任何在 $_FILES 中输入的文件。它看到了 $_POST 。

当我在 $_POST 上运行 print_r 时,会显示所有 7 个条目。当我为 $_FILES 运行它时,1-6 显示,但 7 没有。它甚至没有看到任何文件已上传。

我知道这不是多部分或 php.ini,因为(如前所述),这些设置正确,此外......如果这些是错误的,其他文件将不会在之前的运行中看到。代码本身似乎有效,因为它适用于 1-6。

这不是“大小”问题,因为我在 7 中使用了相同的文件来测试我在 6 中使用的文件。

任何提示/线索?这对我来说毫无意义。

根据请求,我对 $_POST 和 $_FILES 都进行了 print_r,这是响应:

PRINT R OF POST = Array ( [securitytoken] => BLOCKING THIS FOR SECURITY [posted] => true [userid] => 34858 [ready-1] => false [bias-1] => 0 [current-1] => 1.3575 [s1-1] => 1.346 [s2-1] => 1.3099 [s3-1] => 1.2755 [r1-1] => 1.3643 [r2-1] => 1.3709 [r3-1] => 1.3808 [summary-1] => Bullish [description-1] => Hello Traders, below you will find the technical analysis for the EURUSD pair for both the daily and the 2 hour time frame. The pair is is an UP capital ABCD swing. It has had a deep pullback just shy of the .786 Fibonanacci retracement level. Currently, the pair is stuck hovered around 1.3600. The EURUSD still has over 150 pips to reach the projected D extension of 1.618. Tune into Analysts on Demand to learn more about the proper entry and exits or to learn which strategy will work best. Daily A- 1.2660 B- 1.3710 120 A- 1.3450 B- 1.2292 [chartoneuse-1] => 1 [charttwouse-1] => 1 [chartfouruse-1] => 1 [chartdayuse-1] => 1 [ready-2] => false [bias-2] => 0 [current-2] => 1.6089 [s1-2] => 1.5944 [s2-2] => 1.5435 [s3-2] => 1.5206 [r1-2] => 1.6256 [r2-2] => 1.6341 [r3-2] => 1.6453 [summary-2] => Bullish [description-2] => Hello Traders, below you will find the technical analysis for the GBPUSD pair for both the daily and the 2 hour time frame. The pair is is an up capital ABCD swing. It has had a deep pullback to the .50 Fibonanacci retracement level. Currently, the pair has broken the counter trend line and we saw a BULLISH engulfing candle. The stochastic RSI left the over sold zone and looks like a good opportunity to go long in the short term. Tune into Analysts on Demand to learn more about the proper entry and exits or how to properly set up the for the next opportunity. Daily A- 1.5425 B- 1.6159 120 A- 1.5756 B- 1.6162 [chartoneuse-2] => 1 [charttwouse-2] => 1 [chartfouruse-2] => 1 [chartdayuse-2] => 1 [ready-3] => false [bias-3] => 2 [current-3] => 0.9432 [s1-3] => 0.9263 [s2-3] => 0.9215 [s3-3] => 0.8872 [r1-3] => 0.9438 [r2-3] => 0.9528 [r3-3] => 0.9662 [summary-3] => Bearish [description-3] => Hello Traders, below you will find the technical analysis for the AUDUSD pair for both the daily and the 2 hour time frame. The pair is is an up capital ABCD swing. It has had a deep pullback to the .786 Fibonanacci retracement level aiming for the 1.27 Fibonacci extension. Currently, the pair is setting up for counter trend line and we need to see a BULLISH candle stick formation. The stochastic RSI MUST be leaving the over sold zone and lit could be a good opportunity to go north in the short term. Tune into Analysts on Demand to learn more about the proper entry and exits or how to properly set up the for the next opportunity. Daily A- 0.9841 B- 0.9162 120 A- 0.9528 B- 0.9223 [chartoneuse-3] => 1 [charttwouse-3] => 1 [chartfouruse-3] => 1 [chartdayuse-3] => 1 [ready-4] => false [bias-4] => 1 [current-4] => 0.8294 [s1-4] => 0.8197 [s2-4] => 0.7722 [s3-4] => 0.7685 [r1-4] => 0.834 [r2-4] => 0.8434 [r3-4] => 0.8555 [summary-4] => Consolidation [description-4] => Hello Traders, below you will find the technical analysis for the NZDUSD pair for both the daily and the 2 hour time frame. The pair is is an up capital ABCD swing. It has a deep C pullback to the .618 Fibonacci retracement level.Currently, the pair has been in consolidation since the since mid-September. Tune into Analysts on Demand to learn more about the proper entry and exits or how to properly set up when the opportunity presents itself. Daily A - 0.7722 B- 0.8434 120 A - 0.8094 B - 0.8434 [chartoneuse-4] => 1 [charttwouse-4] => 1 [chartfouruse-4] => 1 [chartdayuse-4] => 1 [ready-6] => false [bias-6] => 2 [current-6] => 0.9039 [s1-6] => 0.8968 [s2-6] => 0.8933 [s3-6] => 0.8756 [r1-6] => 0.9136 [r2-6] => 0.9457 [r3-6] => 0.9533 [summary-6] => Bearish [description-6] => Hello Traders, below you will find the technical analysis for the USDCHF pair for both the daily and the 2 hour time frame. The pair is is a down capital ABCD swing. It has a very shallow retracement, pulling back short of the .382 Fibonanacci retracement level. Currently, the pair has yet to pick a direction as it has been in consolidation since the beginning of October. Tune into Analysts on Demand to learn more about the proper entry and exits or how to properly set up when the opportunity presents itself. Daily A - 0.8567 B- 0.9771 a -0.9021 b- 0.9454 120 A - 0.9455 B - 0.8992 [chartoneuse-6] => 1 [charttwouse-6] => 1 [chartfouruse-6] => 1 [chartdayuse-6] => 1 [update-7] => Update Analysis [ready-7] => true [bias-7] => 2 [current-7] => 96.97 [s1-7] => 96.8 [s2-7] => 95.78 [s3-7] => 93.77 [r1-7] => 98.7 [r2-7] => 99.65 [r3-7] => 100.64 [summary-7] => Bearish [description-7] => Hello Traders, below you will find the technical analysis for the USDJPY pair for both the daily and the 2 hour time frame. The pair is is a down capital ABCD swing. It has had a shallow, less than a .382 pullback so there is a possibility of a deeper retracement ( remember the 80/20 rule). Currently, the pair has broken the counter trend line and has given a bearish candle stick setting up for a nice evening star. The stochastic is leaving the over bought zone and looks like a good opportunity to short. Tune into Analysts on Demand to learn more about the proper entry and exits. Daily A- 90.84 B- 99.94 120 A- 99.66 B- 97.14 [chartoneuse-7] => 1 [charttwouse-7] => 1 [chartfouruse-7] => 1 [chartdayuse-7] => 1 [ajax] => ) 

PRINT R OF FILES = Array ( [chartone-1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [charttwo-1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartfour-1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartday-1] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartone-2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [charttwo-2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartfour-2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartday-2] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartone-3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [charttwo-3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartfour-3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartday-3] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartone-4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [charttwo-4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartfour-4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartday-4] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartone-6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [charttwo-6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartfour-6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) [chartday-6] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) ) 
4

0 回答 0