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
- Host: GitHub
- URL: https://github.com/alaeddinejebali/ajax-php-token
- Owner: alaeddinejebali
- Created: 2017-06-19T20:33:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T09:27:37.000Z (almost 9 years ago)
- Last Synced: 2025-06-09T02:40:33.898Z (about 1 year ago)
- Topics: ajax, php, token
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
});
```