I have this php script:
<?php
include("simple_html_dom.php");
$url = "http://en.wikipedia.org/wiki/Thailand";
echo file_get_html($url);
?>
How can I send the $url variable to my tosql.php script ?
I apologize for not including more about what Im doing. Im actually sending this url to a jquery script which sends this to a php script titled tosql.php (which stores the processed data into mysql from the jquery script)
This should do what you want.
By declaring
$urlbefore your include, it’s basically the same as declaring$urlat the very top ofsimple_html_dom.php.