I receive an HTML response from a transaction server after validating credit cards. It sends back a full web page but I dont want to display it. So I use the cURL functions and they return the web page as a string, here's a taste of what the site returns...
<input type="hidden" name="RESULT" value="0">
<input type="hidden" name="AUTHCODE" value="010101">
<input type="hidden" name="RESPMSG" value="Approved">
<input type="hidden" name="AVSDATA" value="NNN">
<input type="hidden" name="PNREF" value="V93802H5558">
<input type="hidden" name="HOSTCODE" value="">
<input type="hidden" name="INVOICE" value="">
<input type="hidden" name="AMOUNT" value="100.00">
<input type="hidden" name="TAX" value="">
basically, i want to make variables from this string. Their names and values should match the hidden inputs'.
I'm not sure if i should use regular expressions or not. whatever you think is fastest of course.