ETC
RSS Links
Tag Cloud
5.3 abstract actionscript actionscript3 Adapter adobe Advance ajax Anonymous Anonymous function apache Array array_walk article as as3 as3corelib Auth Base64 basics bind bitmap bug bytearray callback catch chart charts class cleanup client closures closures function CodeIgniter commerce communicate Communicator compiler console console.log controller crypto css custom event Decryption design patterns dialog dispatch div download Dwoo ecommerce editor Encode Encryption engine ereg ereg_replace error event example experiment explorer facebook Factory Factory Method file Flash Flash Media Server FMS Framework free function garry GNU GPL grchart hash link html ide ie ifconfig image insert internet explorer ip javascript jpeg jQuery jquery plugin js json lachman layer Layout Solution lib libary linux load local localhost log login manager MD5 MDB media microsoft Migrating Mime Type module modules mod_rewrite mvc mysql News Object Oriented old one time link one time url OOP Open Power Template open source oscommerce package pattern PEAR PEAR::Auth php php4 php5 php 5.3 phpclasses.org PHP Framework phpwebcommerce plugin PNG popup posfix POST preg_match preg_replace Presentation problem rect regex regexp request Requirements screen screen manager script select send server session shopping Shopping Cart singleton smarty Solution source code Specification sql ssh static STP table template templates this tooltip trigger try Tutorial UI update url User Interface users utf-8 util utils validate variables vi view vim virus warning widget window wordpress xml XTemplate yourinspirationweb
read POST variables with Javascript using PHP
Hi,
Today i will show very easy way to read POST variables from Javascript using PHP.
2
3
var post_json = "<?php echo json_encode($_POST); ?>";
// ]]></script>
We encode all POST vars with php to javascript JSON.
Now we can access the vars in simple way:
Have a nice day,
Garry