$q="INSERT INTO `table`(`fname`, `lname`, `phone`, `zipcode`, `status`, `pregnant`, `month`, `day`, `year`, `ft`, `inch`, `lb`, `people`, `email`, `annual`, `recent`, `address`, `city`, `state`, `quotetype`, `unsubscribe`, `unsubscribe_type`) VALUES (
'".$_POST['fname']."',
'".$_POST['lname']."',
'".$_POST['ph']."',
'".$_POST['zip']."',
'Accept',
'".$_POST['gender']."',
'".$_POST['mm']."',
'".$_POST['dd']."',
'".$_POST['yyyy']."',
'5','8','80',
'".$_POST['kids']."',
'".$_POST['email']."',
'".$_POST['income']."',
'".$_POST['type']."',
'".$_POST['address']."',
'".$_POST['city']."',
'".$_POST['state']."',
'Lead','0','no')";
$sql=mysql_query($q);
if($sql)
{echo "Lead Successfully submitted";}
else
{echo "Not Done";}
//Recive Data page like : get-data.php
봐 요청 매개 변수 페이지를 보냅니다. 또는 [Requests for PHP] (http://requests.ryanmccue.info/) – xbonez
과 같은 라이브러리를 사용하여 더 쉽게 생활하십시오. CURL을 사용하여 HTTP 요청을 시뮬레이션하고 쿠키를 추적 할 수 있습니다. CURL PHP 라이브러리는 http://curl.haxx.se/의 래퍼입니다. –