Add send-post-form-by-js/test.php
This commit is contained in:
parent
b54acbb069
commit
7b454603e7
4
send-post-form-by-js/test.php
Normal file
4
send-post-form-by-js/test.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?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>
|
Loading…
Reference in New Issue
Block a user