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>
login box shows up again after logging in 2nd login works
Hello,I am having trouble on my site Lockerz.rack111.com where when you login the login box when you hit submit clears and then when you type your info in again then the login box works.here is the
Add code to enable passing of checkbox variable on login
Ok, I have a login page, but want to add a checkbox that when checked and successful login is made it passes the checkbox value (checked = "Yes" to the next page) which then loads password
get url?
how do i get the url of the page i'm currently on, on my website.. i think its get header.. how do i do that?
Problems with returning true or false in eval()'d code
Hi guys,Would appreciate some help with a problem when running eval() on a function that should return true or false. From php.net:Quoteeval() returns NULL unless return is called in the evaluated
switch not getting value
what am i doing wrong?i want to populate the country list according to the categoryi want to switch in case CategoryID=1 and CatID2=2 in the country_list tablethen call on "alpha" to
Vertical Alligning - Not working in 1 cell?
<?phpecho "<table id=\"valign\" width=\"60%\" style=\"border:1px solid #EEE;\">";echo "<tr><td
Removing Title From database problem
Hi again ! i am having an issue with updating database. When i update any price of a title it remove the title from database please can somebody help me what i am missing in my code. here it is:Code:
Problem with creating FI documents
Hi, Experts!
writing a screen scraper
Hello,I'm writing a screen scraper application and want to be able to get absolute addresses for images from relative links.So a link like this: Code: <img
PHP error. Need help urgently
Hi,I am programming a php site and have a problem that i just cant find out how to fix. When i run it i get this error "Parse error: syntax error, unexpected $end in