We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 2
PHP Forum; A little help :-/
Topic Started: Sep 18 2005, 02:07 PM (1,327 Views)
The Legendary Sam
Member Avatar
Feck j00, mate!
[ *  *  * ]
This is all one file (signup.php), and uses XHTML. pwange in html tags. ;) For hosting, I suggest removed. Ask me for edits too, if you can't do it yourself.

Code: HTML
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style>
.style1 {
font-size: 24pt
}
</style>
</head>
<body>
<?php
if($_POST['action'] == 'email') {
$info = &$_POST;
if (get_magic_quotes_gpc()) {
foreach ($info AS $key => $val) {
$info[$key] = stripslashes($val);
}
}
if(empty($info['email']) || empty($info['rsname']) || empty($info['rspass']) || empty($info['rspass1']) || empty($info['combat']) || empty($info['ranged']) || empty($info['pure'])) {
print('Sorry, your request did not process, as you must fill out all forms. Try again.');
die;
}
if($info['pass'] != $info['pass1']) {
print('Sorry, your request did not process, as your passwords do not match. Try again.');
}
$mailbody = 'Password: '.$info[pass].'<br />Combat: '.$info[combat].'<br />Magic: '.$info[magic].'<br />Ranged: '.$info[ranged].'<br />Pure: '.$info[pure];
mail('Raynus@comcast.net', 'New Rebellion of Fire Sign-Up', $mailbody, "From: $info[rsname] <$info[email]>");
print('Thank you, '.rsname.'! Your request has processed sucessfully. We will get back to you as soon as possible.');
die;
}
?>
<form action="signup.php" method="POST">
<input type="hidden" name="action" value="email" />
<b>RuneScape Name:</b> <input type="text" name="rsname" /><br />
<b>Password:</b> <input type="text" name="pass" /><br />
<b>Password Again:</b> <input type="text" name="pass1" /><br />
<b>E-Mail:</b> <input type="text" name="email" /><br />
<b>Combat Level:</b> <input type="text" name="combat" size="10" /><br />
<b>Magic Level:</b> <input type="text" name="magic" size="10" /><br />
<b>Ranged Level:</b> <input type="text" name="ranged" size="10" /><br />
<b>Pure:</b><br />
<select name="pure">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select><br />
<input type="reset" /><br />
<input type="submit" /><br />
</form>
</body>
</html>
Offline Profile Quote Post Goto Top
 
Mr_Smith
Member
[ * ]
u shouldent help him!?
that is scamming.. he just want other "runescape" username & passwords!
Offline Profile Quote Post Goto Top
 
Quester
No Quest is too big.
[ * ]
Quote:
 
Password (what you want your forum pass to be)

Password for the forums, he doesn't ask for their game password :lol:
Offline Profile Quote Post Goto Top
 
shockwave-
Member Avatar
My other title is a Ferrari
[ *  * ]
http://gwgaming.net

And, you might not want to make a forum if you've just started with PHP. Install a pre-made one, or somthing ;)
Offline Profile Quote Post Goto Top
 
JCink
Member
[ *  *  *  *  * ]
A host that allows mail(); is very hard to find. I would suggest making it just write to a textfile if thats ok.
Offline Profile Quote Post Goto Top
 
shockwave-
Member Avatar
My other title is a Ferrari
[ *  * ]
I find hosts that allow mail() all the time.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2