RE: Question about display pictures, submit pictures [Ok in PHP 7.4.33, fail in 8.0.26]
| From: | Jānis Elmeris | Date: | Mon, 29 Jan 2024 12:31:59 +0000 |
| Subject: | RE: Question about display pictures, submit pictures [Ok in PHP 7.4.33, fail in 8.0.26] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328364@lists.php.net to get a copy of this message | ||
Is the PHP version the only thing that was changed? Is the PHP/template framework you're using
compatible with the changed PHP version? Does the browser output any notifications in its console
log?
Regards,
Janis
________________________________
No: mingzoe l <lmingzoe55@gmail.com>
Nosūtīts: pirmdiena, 2024. gada 29. janvāris 08:55
Kam: php-general@lists.php.net <php-general@lists.php.net>
Tēma: Question about display pictures, submit pictures [Ok in PHP 7.4.33, fail in 8.0.26]
Dear Supporter,
The website background management system needs to upload pictures and submit them so that the
pictures displayed on the website can be updated.
I can use them normally in 7.4.33 ,but when I updated php to 8.0.26, this function cannot be used I
have tried many ways but failed to fix this function. It is found that after the include file in
7.4.33, the transmitted parameters can be normally obtained and used. However, in 8.0.26, the
include file takes effect, but the parameters are not correctly transmitted, and the related
parameters are not invoked, resulting in the failure of this function.
May I ask how to solve this problem? I am looking forward to your reply, which will be of great help
to me.
Thanks a lot.
Page:
<include file="Public/uploadimg" id="picture"
value="{$model.picture}" width="100" path="banner" thumbw=""
thumbh="" />
No parameter values were transferred after the call:
Public/uploadimg
<div>
<input type="file" id="upload[id]" name="upload[id]">
<input type="hidden" id="[id]" name="[id]"
value="[value]">
<div id="div[id]" style=" margin:10px 0px;">
<a href="[value]" id="a[id]" target="_blank">
Zoe Liu