here is the code as it stands now:
foreach($url_extq_data as $a)
{
$var .=$a;
}
// now replace all the tags in the substring and out put the data
$from = array("{our_track}", "{name}", "{surname}", "{email}", "{title}", "{gender}", "{dobday}", "{dobmonth}", "{dobyear}", "{address}", "{address2}", "{town}", "{county}", "{postcode}", "{tel}", "{mobile}", "{timestampu}", "{timestampr}", "{username}", "{password}", "{company}", "{siteurl}", "{fax}", "{tracking}");
$to = array("$our_id", "$name", "$surname", "$email", "$title", "$gender", "$dobday", "$dobmonth", "$dobyear", "$address", "$address2", "$town", "$county", "$postcode", "$tel", "$mobile", "$timestampu", "$timestampr", "$username", "$password", "$company", "$siteurl", "$fax", "$trackit");
$final_url = str_replace($from, $to, $var);
// open url and wait for response
$handle = fopen("$final_url", "r");
echo $final_url;
and this is the output:
<br /> <b>Warning</b>: fopen(http://...@1s2ls5we.com&title=Mr&SupplierSourceCode=11876) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in <b>/home/s/e/searlco/web/public_html/ms_creg.php</b> on line <b>232</b><br /> http://www.cleanleads.co.uk/lead.aspx?campid=30&suppid=284&HSID=1121&HOID=52&FirstName=Dafydd&LastName=Thomas&AddressLine1=31 Cottage Street&Postcode=LB34 4HR&Gender=M&DateOfBirth=13/10/1980&emailaddress=dait@1s2ls5we.com&title=Mr&SupplierSourceCode=11876ER
i have included the link in their