Hi all -
I have a form on my site that after it is submitted, the form contents is put into my database. I also need to send some of the data to a URL.
When I test the form after submission on the subsequent page the URL gets populated correctly but I get the following error:
I'm lost as to why the script would be looking for a file when file_get_contents is a URL.
if ( ($_POST['country'] == 'UK') && !empty($_POST['569']))
{
$xzfield = array();
$xzfield['FirstName'] = $_POST['first'];
$xzfield['LastName'] = $_POST['last'];
$qs = '';
foreach ($xzfield as $k => $v)
{
if (!empty($qs))
$qs .= '&';
$qs .= $k .'='. urlencode($v);
}
file_get_contents('http://www.PLACEURLHERE.com/testlead.aspx?' . $qs);
}