php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28312 Post Variables Error
Submitted: 2004-05-07 13:21 UTC Modified: 2004-05-07 16:13 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: emad_fankoosh at hotmail dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.3.4 OS: Windows NT
Private report: No CVE-ID: None
 [2004-05-07 13:21 UTC] emad_fankoosh at hotmail dot com
Description:
------------
variables are not posted,for example, i have list which contains 200 softwares for example, the list shows the first 50, and shows on the bottom of the page [ Next >>> ] which shows the next 50 softwares[ list.php?begin=50 ]

Reproduce code:
---------------
http://fulldls.hostecom.com/TOPs/list.php

for($i=$begin; ($total > $i) && ($max_list_size > $i) && ($i < $begin+50); $i++){
$split = explode("||", $array[$i]);

echo ...

---------------------------------------------------------
if ($begin >= 50)
echo "<a href=\"$PHP_SELF?begin=".($begin-50)."\"><< Previous</a> - \n";
if ($begin <= $total-50)
echo "<a href=\"$PHP_SELF?begin=".($begin+50)."\">Next >></a>\n";
echo "<br>";

Expected result:
----------------
shows the next 50 softwares ...

Actual result:
--------------
show the first 50 softwares and doesn't assign a value for the $begin variable.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-07 16:13 UTC] derick@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 04:01:30 2024 UTC