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&currency_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 Like 14 Dislike
Previous forums Next forums
Other forums

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

Echo Tweaking help!
HI. I would like to have the output of the entered variables repeat forever, but it's stopping at th

server trace logs
could any one tell me from where do i get error logs in xMII??I want to check the reason for dtabase

Writing to the middle of a file
Hi I have a bit of a problem. Is there any way i can write some text to a middle of a text file. For

Uploading Filetypes and placing them in seperate folders.
Hello,

first post , and asking for help im afraid. Very new to PHP, was making good progress

MS Access data into a html table
Hi everyone, I am quite a novice at php but I have created some helpful scripts that fetch data
f

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

Function module "DPS_CHECK_TABLE_EXISTS" not found (after OSS 1422843 impl)
Dear All,

I implemented Note OSS 1422843.

When i execute the new report RSPO20

Changes to hosting company's server has affected web contact form
I started a thread a couple of months ago about the contact forms on my client's website. Basically

Having Problem with Date
l have a submit buttom where user have the possibility to add a date to specify when his message s

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash