Javascript
$("#appendedInputButton").click( function () {
bday = document.getElementById("appendedInputButton").value;
$.get("php/getWiki.php", {
"bday":bday
}, function (data) {
response = data;
})
});
还尝试了不带引号的生日。
PHP
if (isset($_GET["bday"])) {
var_dump($_GET);
$bday = $_GET["bday"];
echo $bday;
echo "<br>";
...
} else {
echo "error lols."
}
我想我没有正确地做某事。这是响应输出:
response
"array(1) {
["bday"]=>
string(0) ""
}"