Issue with html page format

bapval

New Member
Hi,

I'm facing a very strange issue with v8.3.7 and latest v6 (Mac). I would like to send parameters to personalize the content of the page in the URL and get the values using PHP $_GET.

Code:
http://ymf-prod.ymf.fr/2013/data-conc/index.php?conc=[Opt1]&maxbulk

text alternative

But it doesn't work well... Replacing [Opt1] with hard coded values in URL is fine.

Code:
http://ymf-prod.ymf.fr/2013/data-conc/index.php?conc=025741&maxbulk

text alternative

But as far as I'm replacing hard coded values with the maxprog labels in the page URL my PHP code can't handle the values correctly. Please see below my debug tests :

Code:
string(6) "025741"
string(6) "025741"
-1
0
25741
MDI1NzQx
W09wdDFd

1. vardump of a php $var string "025741"
2. vardump of maxbulk sent param "025741"
3. str_cmp of these 2 strings... Should be 0 but result = -1 !
4. (int) value of maxbulk string "025741"... Should be 25741 not 0 !
5. (int) value of a php $var string "025741"
6. base64_encode of a php $var string "025741"
7. base64_encode of maxbulk string "025741".

As you can see these two strings looks the same but from a php point of view they are not the same !
Looks like an encoding/bits issue...
 
Top