let value = $(element).serialize();
$.ajax({
url: "/public/php/create-app.php",
type: "POST",
data: {"value" : value},
success: function(data) {
if (data) {
//location.reload();
} else {
}
}
});
let value = $(element).serialize();
$.ajax({
url: "/public/php/create-app.php",
type: "POST",
data: value,
success: function(data) {
if (data) {
//location.reload();
} else {
}
}
});
if(isset($_POST['app-name']){
\\..ваш код.
}
<?php
$query = "my=apples&are=green+and+red";
foreach (explode('&', $query) as $chunk) {
$param = explode("=", $chunk);
if ($param) {
printf("Value for parameter \"%s\" is \"%s\"<br/>\n", urldecode($param[0]), urldecode($param[1]));
}
}
?>