gpt4 book ai didi

javascript - 如何将javascript变量发送到php mysql

转载 作者:可可西里 更新时间:2023-11-01 07:58:30 24 4
gpt4 key购买 nike

<分区>

我正在尝试将 javascript 变量插入到 php mysql 中,但它没有插入。它插入为 <javascript>document.write(window.outerWidth); </javascript> x <javascript>document.write(window.outerHeight); </javascript> .但结果是 1366 x 728

我该怎么办?

<?php
$width = " <script>document.write(window.outerWidth); </script>";
$height = " <script>document.write(window.outerHeight); </script>";
$xex = " x ";
$resulteee = "$width $xex $height";
echo $resulteee;
?>

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com