How do you Redirect POST Data?

Status
Not open for further replies.

Karnul

Lurker Since 2006
Jul 18, 2006
467
6
0
So you want to split test or create a goal page for tracking. How do you redirect POST data being sent to your merchant account hosted pages?

Not CC#'s or anything... just order quantity stuff.

===========================
Using the choose order quantity page as a goal doesn't give accurate sales results.

Creating a goal page for customers to land on after they buy requires them to hit a button (many don't) to come back to my site.

*moved to the appropriate place:smilie_weihn_winki:
 


You could get the data into PHP variables then use the cURL library. Look into that.

Surely youre in the wrong forum btw??
 
Thanks for putting this thread where it belongs.

=============================

This issue has been resolved for me. If anyone else has a shopping cart and wishes to accurately track with Analytics or with a php script --> contact your merchant account provider. Mine has a spot to put the code that is working great.
 
You could do something like:

Code:
<?php
if(isset($_POST['Submit'])){
   $base = "http://www.somedomain.com?quantity=";
   $url = $base . $_POST['url'];
   $file = @fopen($url,"r");
   
   if($file){
      header("Location: $url");
   }
   else{
   $err = "$url URL does not exist";
   }
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<?php
if(isset($err)){
   echo $err;
}
?>
<form id="form1" name="form1" method="post" action="">
  <label>
  <input type="text" name="quantity" />
  </label>
  <label>
  <input type="submit" name="Submit" value="Submit" />
  </label>
</form></body>
 
Status
Not open for further replies.