Hi,
I am trying to set up so that users on my site can pay to upgrade there account. What i thought would work but does not seem to be is this:
Then in the upgradeaccount-process.php i have done:
[PHP]
if (isset($_GET['type'])){
$sdate = date("Y-m-d");
$query = mysql_query("UP DATE `users` SET type='1', sdate='$sdate' WHERE id = '$_GET[id]'");
header("Locatio n: members.php"); /* Redirect browser */
exit();
}
[/PHP]
But when i tried this it does not upgrade, have i done something wrong?
Cheers,
Adam
I am trying to set up so that users on my site can pay to upgrade there account. What i thought would work but does not seem to be is this:
Code:
<input type="hidden" name="return" value="http://www.web.com/upgrade-account-process.php?id={$sessionid}">
[PHP]
if (isset($_GET['type'])){
$sdate = date("Y-m-d");
$query = mysql_query("UP DATE `users` SET type='1', sdate='$sdate' WHERE id = '$_GET[id]'");
header("Locatio n: members.php"); /* Redirect browser */
exit();
}
[/PHP]
But when i tried this it does not upgrade, have i done something wrong?
Cheers,
Adam
Comment