michal84
posted this
02 October 2020
Hello Nicepage support,
I would like to report the issue in Modal Pop-Up when into the Modal is placed the same PHP code as into standard PHP element placed in the empty blank block, where the PHP result is displayed, whilst in the Modal Pop-Up not. The code is shown below:
<?php
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
echo generateRandomString();
?>
The code should just generate the voucher for sale. To get the voucher code in Modal would be expected, however it does not work. The URL is: https://obchod-podlahy.cz/modal.html .
If you have a look to the source code of the displayed page, the PHP is NOT processed - see the attached image.
Thanks for checking that.
Best regards,
Michal
Hello Nicepage support,
I would like to report the issue in Modal Pop-Up when into the Modal is placed the same PHP code as into standard PHP element placed in the empty blank block, where the PHP result is displayed, whilst in the Modal Pop-Up not. The code is shown below:
<?php
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
echo generateRandomString();
?>
The code should just generate the voucher for sale. To get the voucher code in Modal would be expected, however it does not work. The URL is: https://obchod-podlahy.cz/modal.html .
If you have a look to the source code of the displayed page, the PHP is NOT processed - see the attached image.
Thanks for checking that.
Best regards,
Michal
Vote to pay developers attention to this features or issue.