Home > > Coreg

Can't get 2 page Coreg Lander To Work Without (2)


11-15-2012 11:08 PM #1 colorofspace (Member)
Can't get 2 page Coreg Lander To Work Without

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

Code:
<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">
Then my go.php file looks like this


Code:
<?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);
  
?>

and on my iframed page I have this

Code:
<?
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;
?>
The spkey, exit URL, prize URL, and prosper 202 SUBID are making it into the path just fine but the email, name, and phone number aren't at all.

I have another version of the page that is running with the first page set as the offer, then I select direct link with prosper, but the subids aren't tracking properly. Ironically, it currently has a 150% ROI.

This is the first 2 page coreg lander I have tried to make and I have been messing with it for 2 hours and I can't get it to work for the life of me. Most of the code is taken from this topic.


EDIT: I'm not sure where the "without" in the topic title came from...


11-16-2012 12:40 AM #2 zeno (Administrator)

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.


Home > > Coreg