PHP file_get_contents() Example

<form name="this_form" method="post" action="<?=$PHP_SELF;?>">
Address Like: Zip Code:    
<input type="hidden" id="account_number" name="account_number" value="0123456789">
<input type="hidden" id="user_id" name="user_id" value="fred@aol.com">
<input type="hidden" id="pass_word" name="pass_word" value="wilma">
</form>

<? if( $_POST ){ /* validate your data */ $data = http_build_query($_POST); @$xml_data = file_get_contents("http://www.esiids.com/cgi-bin/esiids_xml.cgi?$data"); if( !$xml_data ){ die("Got a Problen"); } try { @$xml = new SimpleXMLElement($xml_data); if( !$xml ){ $error = "Houston... We have a problem... Invalid XML String"; throw new Exception($error); } }catch(Exception $e){ printf("<font color=\"red\">Error</font>: %s\n",$e); die(); } $error_flag = sprintf("%b",$xml->error_flag); $error_message = sprintf("%s",$xml->error_message); $rows = sprintf("%s",$xml->rows); if( $error_flag ){ printf("<font color=\"red\">Error</font>: %s\n",$error_message); die(); } foreach( $xml->row as $row ){ printf("%s\n",$row->esiid); printf("%s\n",$row->address); printf("%s\n",$row->city); ...................... } } ?>
That's all there is to it.

Not Logged In


Services include: Load Forecasting,Natural Gas Strips, and Heat Rates.   Texas Competitive Retail Electric Providers (CREPS): Zurvita,Ignite,xStreamPower.net,xStreamEnergy.net,dirtCheapPower.com,Amigo Energy, APNA Energy, Champion Energy, Cirro Energy, Commerce Energy, Direct Energy, Dynowatt, Econnergy Energy Company, First Choice Power, Gexa Energy, Green Mountain Energy, Hudson Energy Services, MXenergy, National Power Company, Nueces Electric Co-op Retail Division, OnPAC Energy, Pegasus Alliance Corporation, Reliant Energy, Spark Energy, StarTex Power, Stream Energy, Texpo Energy, TXU Energy, and YEP.  The Power to Choose,  ESIID, ESI ID, ESIID, ESI-ID Lookup Online,esi number,  ERCOT,   Texas Electric Choice,  Texas Electricity Deregulation.