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>
C++ Http request?
Code:
PHP code for a proxy
I was wondering which function I could use to create an online proxy tool. I was thinking cURL would work, but it just doesn't seem appropriate, for cURL is mostly used form getting data. Any ideas?
php include email form with attachment
I have had no luck with finding a email form all over the Internet for various reasons. Some insecure, some simple, some lack of attachment capability, some use redirect, etc. How does one find the
simplexml_load_file and rss problem
Hi,I have a problem parsing an rss feed using simplexml_load_file - this is strange as i have used the same code to parse literally 1000s of different feeds in the past, and even stranger in that if i
Insert numbers from Barcode scanner into online php page
I have a real big problem, Here is what I'm trying to do. I have a Intermec CN3 handheld computer that has a builtin scanner. We have built a website that manage our inventory. How? We have a simple
HTML form problem
Ive made a form to that i want to send to my email via PHP. but when it send only the name's etc send and then the table belpw only Job location sends and the other columns do not send. is this a html
php and downloading
I want to use a php script to create two files. Then I want it to redirect (or whatever) to have those files download together. Can I have it download a folder? Or maybe have it create a zip/rar file
Need Reporting Advice
My SQL server doesn't support MS SQL reporting services that comes with SQL Enterprise or Express. Then the administrator suggested that I google for alternatives. I'm a newbie and don't even know
with clause
hi all, i have a big query that usually access the same table more than once. for example, i have something like this
List/Menu Box
On an edit page when you want something to select what a user has previously selected from the database, how would you do this for a List/Menu box? The only way I know how is Code: <?php echo