An open API service indexing awesome lists of open source software.

https://github.com/alaeddinejebali/ajax-php-token

AJAX implementation with PHP using a secure token
https://github.com/alaeddinejebali/ajax-php-token

ajax php token

Last synced: 2 months ago
JSON representation

AJAX implementation with PHP using a secure token

Awesome Lists containing this project

README

          

# AJAX implementation with PHP using a secure token

## server.php

```php

```
## file.php
```php

```

## script.js
```javascript
var formData = {
data: $("#data").val(), //your data being sent with ajax
token:'', //used token here.
is_ajax: 1
};

$.ajax({
type: "POST",
url: 'yourajax_url_here',
data: formData,
success: function(response){
//do further
}
});
```