site A is like
<html> <head> <script> //this script has to get the values from siteB </script> </head> <body> <div><!-- here i will do something with the data of site B --></div> </body> </html>
Site b is like:
<?php var1= "something"; var2= "somethingElse"; ?>
I was thinking to use JSON or Ajax but i do not understand exactly how.