Skip to content

nowanon/ajaxCrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ajaxCrypto

Encode Ajax Request Data & Decode PHP post-get

Example video: https://www.youtube.com/watch?v=v0PQbwXCvLs

JavaScript Request Encode Data

<script src="ajaxCrypto.js"></script>
<script>
  ajaxCrypto("post-or-get", "test.php", {isim:"ihaci",soyisim:"berkpw"}, setHeader_func_or_null, success_func, error_func);
</script>

Php Decode Data

require_once("ajaxCrypto.php");
if($ajaxCrypto->post){
  echo var_dump($ajaxCrypto->post);
}
if($ajaxCrypto->get){
  echo var_dump($ajaxCrypto->get);
}