where a player should agree first before he or she can go to the donate page
and if the player doesn't agree at all to our terms and condition he or she won't be able to donate
so i am trying to restrict the donate page that only users that agreed to our terms and condition are the only one who can enter to our donate page but after creating the pages it wont go to the donate.php even after clicking the i agree button..
code for my agreement.php
<?php
if(isset($_POST['sub'])){
$_SESSION['agree'] = 1;
header("Location:donate.php");
}
?>
<html>
<body>
<?php
echo "
<form action='agreement.php' method='post'>
Terms and Condition <br/><br/>
1. You will not attempt to recall your donation to rfprojectx.com:2224<br/>
2. You will not dispute the charges incurred to your paypal account from your voluntary donation to rfprojectx.com:2224<br/>
3. You understand that this is a voluntary donation and it is not refundable or disputable at any time or any reason and the money you sent for our server is not a payment or a purchase, it is a donation so we can put the server online 24 hours using that money you donated and as a exchange for donating such amount you'll get benefits as being a donator and having a unique items that the ordinary player dont have.<br/>
4. Any attempt to fraud donation system will lead to permanent removal of your account(s) from our network.<br/>
5. Being a donator do not give you any privelege. You will be threat just like any other player. <br/>
6. If reward received in response to a donation or donation(s) was stolen/lost/misplaced/dropped in game, we will<br/> not be held responsible for its recovery.<br/>
<br/>
- If you do not agree to these terms, do not send in a donation but if you agree to this terms and conditions<br/>
you may press the I agree button.<br/>
<br/>
<input type='submit' name='sub' value='I Agree and I Accept the Terms and Condition'/>
</form>";
?>
</body>
</html>
code to where it goes
<?php
if($_SESSION['agree']!='1'){
header("Location:agreement.php");
}else{
echo "welcome";
}
?>
forgot to mention
there's no login form to check the users session
all i need to check if the user clicks the i agree button so if he or she doesnt click it he or she wont be able to go to our donate page.

New Topic/Question
Reply




MultiQuote






|