PayPal Redirect Issue
Posted on
16th Feb 2014 07:03 pm by
admin
When I have my paypal button set so that is redirects to http://empiremarketing.ca/order.php,it works just fine. But when I change the redirect URL to something like: http://empiremarketing.ca/order.php?link=7, it all of a sudden does not work. How can I fix this?
I did not create this page, but I am trying to get it to work so that it redirects to this page: http://empiremarketing.ca/order.php?link={$redirlink}
I know there is supposed to be some magic happening, but it is not. Any ideas?
Here is the page PHP code:
Code: <?php
$newprice = $_GET['np'];
$ordertotal = $_GET['tt'];
$redirlink = $_GET['redir'];
require_once ("config.php");
$con = mysql_connect($hostname, $dbuser, $dbpass) or die(mysql_error());
$select = mysql_select_db ($selectdb, $con) or die(mysql_error());
$update = "UPDATE linkcount SET price = '$newprice' WHERE id = 1";
$result = mysql_query($update, $con) or die (mysql_error());
#Create PHP Session for the number of link boxes to be shown after paypal payment
session_start();
session_register();
$_SESSION['link_number'] = $redirlink;
?>
<html>
<head>
<title>Empire Marketing - SEO Services: Pre-Order Form</title>
</HEAD>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bgcolor="#ffffff" background="images/bg.jpg"><center>
<table border="0" height="100%" width="916" cellpadding="0" topmargin="0" cellspacing="0" background="images/bg2.jpg">
<tr>
<td align="center" valign="top"><img src="images/header.jpg"><BR><img src="images/header2.jpg">
<table width="800" border="0" cellspacing="0" cellpadding="8">
<tr>
<td align="justify">
<font face="Verdana">
<div align="center">
<h1>Order Confirmed</h1>
<?php
echo ("<a href="https://www.paypal.com/xclick/business=me@mygreatempire.com&undefined_quantity=0&item_name={$redirlink}MthlyURL&amount=$ordertotal¤cy_code=USD&return=http://empiremarketing.ca/order.php">Click here to pay via PayPal.</a>
");
?>
</div>
<br />
<br />
</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="bottom">
<img src="images/footer.jpg">
</td>
</tr>
</table>
</center>
</body>
</html>
No comments posted yet
Your Answer:
Login to answer
262
14
Other forums
Sorting JTable on more than just the values listed in the columns
I have a collection of objects that store (among other things) two integer values. I only want to di
how do i make a string??
hey guys,
can someone please tell me how to put data from the glob function into a string
Validating time
Hi Guys
what do you think of the following approach to validate a 24hour time:
http://
Cursor statement failed with errors
Following statement failed with the errors.
cursor proj_cursor1 is (select projectID from
Retrieving the 25 most recently added entries from all tables in a MySQL databas
Hello,
The code below works great. It creates a table that shows the 25 most recently added t
Need help making a script that moves data into acrhive table
Hi,
I'm kinda new to php/mysql
And i wrote a simple script to store sales lead for a b
ORA-00932: inconsistent datatypes: expected - got CLOB
SO : windows xp
database : XE
there is a table (transito) with two fields of clob
Image loading
Hi Developers,
I'm trying to display an image from images/image.gif getting the url from mysq
preg_match logical error
Code: <?php
$s = file_get_contents("page.html");
preg_match('/<div cla
Question handling xml data
Hello,
I have sucessfull followed this tutorial
http://www.phpfreaks.com/tutorial/handlin