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
Error Messaging not working
I changed the way my form tells the user of an error. But I can't seem to get it to work properly.
problems with search form numerical "between" sending by php
I am trying to display the results of a search, on a sql database, on a web page. I set up html &quo
how can i make a .gif images for my site
Dear Friends ,
Pls solve my problem , I am starting making new site but i dont know how can i
MySQL-PHP Query Results Help
Hello all. I'm hoping to be able to get some help in solving a problem with query/rowcount output. I
Hi, explode and strstr.
Hi, I seem to be confused about the strstr function, eg. i have a string like:
"a.b.c.d.e.f&
Filename and Line Number Custom Error
I have a class, with a method that accepts 2 parameters. I would like to output error messages.
SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built
how to populate a drop down box
Hi buddies!
PROCEDURE DOWNLOAD_REPORT_FORM (report_name varchar)
is
begin
DOWNLO
Calling variables
I want to call this to my website but it doesn't display what I want it to,
Code: <h5&
Kill a process
I have a question - how can I kill a process from a command line or by using Oracle SQL Developer? I