I'm running a simple landing page where the data collection form is on the first page and the second page is the path, but I can't seem to get the data to go from the form to the path.
Here is my data collection form
<form name="info" method="post" action="go.php">
<div id="nm">
<input id="leadFirstName" size="30" maxlength="40" name="leadFirstName" type="text">
</div>
<div id="mb1">(
<input id="leadCellPhone1" name="leadCellPhone1" maxlength="3" style="width: 26px;" type="text">
)</div>
<div id="mb2">
<input id="leadCellPhone2" name="leadCellPhone2" maxlength="3" style="width: 50px;" type="text">
</div>
<div id="mb3">
<input id="leadCellPhone3" name="leadCellPhone3" maxlength="4" style="width: 57px;" type="text">
</div>
<div id="em">
<input id="leadEmail" size="30" maxlength="40" name="leadEmail" type="text">
</div>
<div id="send">
<input name="submit" onclick="return validate(info)" class="image" style="background: none repeat scroll 0% 0% transparent; width: 304px; height: 60px;" alt="Submit Form" src="XXXXXXXX" type="image">
<?php
session_start();
$leadFirstName=@$_GET['leadFirstName'];
$leadEmail=@$_GET['leadEmail'];
$leadCellPhone1=strval(@$_GET['leadCellPhone1']);
$leadCellPhone2=strval(@$_GET['leadCellPhone2']);
$leadCellPhone3=strval(@$_GET['leadCellPhone3']);
$phone=$leadCellPhone1.$leadCellPhone2.$leadCellPhone3;
$_SESSION['leadFirstName']=$leadFirstName;
$_SESSION['leadEmail']=$leadEmail;
$_SESSION['phone']=$phone;
if (isset($_COOKIE['tracking202outbound'])) {
$tracking202outbound = $_COOKIE['tracking202outbound'];
} else {
$tracking202outbound = 'http://XXXXXXXXXXX.com/tracking202/redirect/lp.php?lpip=92116&pci='.$_COOKIE['tracking202pci'];
}
header('location: '.$tracking202outbound);
?>
<? session_start(); $firstname=@$_SESSION['leadFirstName']; $email=@$_SESSION['leadEmail']; $phone=$_SESSION['phone']; $t202subid=$_COOKIE['tracking202subid']; $spkey="XXXXXX"; $prizeurl="XXXXXX"; $exit="XXXXXX"; $spurl="http://spath2.path-tracker.com/init?init_key=$spkey&email=$email&first_name=$firstname&mobile_number=$phone&country=US&prize_img_url=$prizeurl&subid1=$t202subid&exit_url=$exit"; $url=$spurl; ?>
Sup, $_GET pulls querystrings/variables from the page URL. If you are submitting values using a form then the values are passed using the POST method, so in your go.php change all the $_GET functions to $_POST and you should be good to go.