Home > > Coreg

How Do I Capture the users phone # (3)


08-31-2011 02:40 AM #1 rgrinny17 (Member)
How Do I Capture the users phone #

Can anyone help me on this one. I am capturing the emails, just wondering how to capture the phone number on the coreg path. Is it the exact same code, just change the email to phone and capture the phone #s in a text file?


Thanks


08-31-2011 03:32 PM #2 Daksneezian (Member)

yup just make a new field.


08-31-2011 04:27 PM #3 clicktrack (Member)

pretty much same thing here is my code below

Code:
$t202subid=$_COOKIE['tracking202subid'];
$fname=@$_GET['firstname'];
$lname=@$_GET['lastname'];
$email=@$_GET['email'];
$p1=@$_GET['phonea'];
$p2=@$_GET['phoneb'];
$p3=@$_GET['phonec'];
$phone=$p1.$p2.$p3;


	if($phone!=""){
	$myFile = "phone.txt";
	$fh = fopen($myFile, 'a') or die("can't open file");
	$stringData = $phone.",".$fname.",".$lname.",".$email."\n";
	fwrite($fh, $stringData);
	fclose($fh);


Home > > Coreg