Update send-post-form-by-js/test.php
This commit is contained in:
parent
7b454603e7
commit
9154eea9c3
@ -1,4 +1,7 @@
|
||||
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST') var_dump($_POST); ?>
|
||||
<?php
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') var_dump($_POST);
|
||||
|
||||
<button onclick="sendPostWithData('test.php', {name: 'John', surname: 'Doe'})">Send</button>
|
||||
<script src="script.js"></script>
|
||||
echo <<<HTML
|
||||
<button onclick="sendPostWithData('test.php', {name: 'John', surname: 'Doe'})">Send</button>
|
||||
<script src="script.js"></script>
|
||||
HTML;
|
Loading…
Reference in New Issue
Block a user