gists/send-post-form-by-js/test.php

6 lines
165 B
PHP
Raw Normal View History

2024-05-10 09:43:04 +00:00
<?= var_export($_POST, true) ?>
2024-05-10 09:34:47 +00:00
2024-05-10 09:43:04 +00:00
<button onclick="sendPostWithData('test.php', {name: 'John', surname: 'Doe'})">Send</button>
<script src="script.js"></script>