Sample FunctionsPHP and JS.  This shows how to send a message post using PHP