Show sourcecode
The following files exists in this folder. Click to view.
test.php
25 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="utf-8" />
<meta name="viewport">
<title>Första sidan</title>
</head>
<body>
<?php
if (isset($_POST["actions"])) {
$json = json_encode("{".$_POST['actions']."}");
echo json_decode($json)."<br>";
}
?>
<form method="POST" action="">
<input type="hidden" id="actions" name="actions" value="">
<input type="submit" value="Skicka">
</form>
<script src="index.js"></script>
</body>
</html>