View Full Version : Problem Setting Up Confirmation Page
streetbe
11th July 2004, 10:47 PM
Hey,
I'm trying to set up this affilaite program and everything seems to be set up correctly except for the thank you page, when I add the
<?PHP include "aff/check1.php";?> to my thank you page nothing happens, I get a completely blank .php file with no code.
when i delete the <?PHP include "aff/check1.php";?> from my thank you page everything goes back to normal.
other than that every thing else seems to be working fine.
thanks in advance.
quillspirit
11th July 2004, 11:03 PM
What kind of other code do you have on the rest of your thank you page?
Where are you placing the include snippet?
If you show me some code, I may be able to help you hunt down the bug. :)
Also, where is your Thank you page, in relation to your "aff/check1.php" - You may need to change the path... "../aff/check1.php" or similar.
Just a thought. :)
streetbeatz1
11th July 2004, 11:08 PM
Here is the code that i am using for my site including the affiliate include:
<?PHP include "aff/usdcurrency.php"; ?>
<html>
<head>
<title>Thank You For Your Business!</title>
<script language="javascript" src="/globals.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/globals.css">
</head>
<body link="#000000" alink="#000000" vlink="#000000">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="780">
<tr>
<td width="100%">
<?php include_once("/hsphere/local/home2/mysite.com/include/topimage.txt");?>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#000000">
<?php include_once("/hsphere/local/home2/mysite.com/include/topnavigation.html");?>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#336699" background="http://streetbeatz.biz/images/new-topshadow.jpg">
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td width="100%" align="center">
<?php include_once("/hsphere/local/home2/mysite.com/include/advertise.html");?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#336699">
<table border="0" cellpadding="0" cellspacing="3" width="100%">
<tr>
<td valign="bottom" height="100%">
<?php include_once("/hsphere/local/home2/mysite.com/include/buy4get1free.html");?>
</td>
<td width="100%" valign="top" class="texttiny">
<?php include_once("/hsphere/local/home2/mysite.com/include/th
anks.html");?></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="5" width="100%">
<tr>
<td width="33%" valign="top" height="100%">
<?php include_once("/hsphere/local/home2/mysite.com/include/bottomnavigation.php");?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#336699">
<?php include_once("/hsphere/local/home2/mysite.com/include/copyright.txt");?>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
mark
12th July 2004, 12:06 AM
Hi,
this is related to free version.
The fact that everything goes blank means that you were using correct path to include /aff/check1.php script.
The problem is that if check1.php doesn't find the ref parameter, it will call exit, and then the script will end and no output is generated.
You should put the <?PHP include "aff/check1.php";?> into the very bottom of your page, then it should not have this effect.
Or, you can modify the code in check1.php and replace
if (!$ref)
exit;
else
{
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 32)");
mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$payment')")
or die("Database INSERT Error (line 34)");
}
with
if ($ref)
{
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 32)");
mysql_db_query($database, "INSERT INTO sales VALUES ('$ref', '$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$payment')")
or die("Database INSERT Error (line 34)");
}
regards,
mark
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.