Jump to content

zeeshan

Members
  • Content Count

    107
  • Joined

  • Last visited

Community Reputation

1 Neutral

About zeeshan

  • Rank
    Member
  1. zeeshan

    Auto bots

    Its Pokemon Vortex.
  2. I don't have much knowledge but it looks amazing so far!
  3. zeeshan

    Auto bots

    I need a small help, that is i want to record a game battle online and replay it. That was only possible through Imarcos but now the game has gone more advanced and the ATTR value changes every new battle. IS there any other way i can do that apart from Imarcos?
  4. zeeshan

    Auto bots

    How can we make an auto bot?
  5. zeeshan

    Imacro issue

    Does any one has any knowledge about the Imacro coding? I have a doubt that can a form id change for every time we refresh the page?
  6. zeeshan

    Correction Needed

    The registration form doesn't store it. I want some help.
  7. zeeshan

    Correction Needed

    I have. But i will check it again.
  8. zeeshan

    Correction Needed

    Where should i add this?
  9. zeeshan

    Correction Needed

    I have remade few coded just by editing them. Actually the thing is they are not redirecting after the registration. I want the registration page redirect me to a thankyou.php page and then from there to login.php page. I'm unable to do this.The thing is I'm being registered but when i try to login it shows the particular e-mail address wasn't found please check this code. register.php <?phprequire_once 'db.php';$page_mode = isset($_POST['page_mode']) ? $_POST['page_mode'] : '';$error_string = '';if ($page_mode == 'register'){ $email = trim($_POST['email']); // trim to remove whitespace $name = trim($_POST['name']); // trim to remove whitespace $password = $_POST['password']; $conf_password = $_POST['conf_password']; if (!isValidEmail($email)) $error_string .= 'Please enter a valid email address.<br>'; if ($name == '') $error_string .= 'Please enter your name.<br>'; if (strlen(trim($password)) < 6) $error_string .= 'You must enter a password of at least 6 characters.<br>'; if ($password != $conf_password) $error_string .= 'The password and confirmation password do not match.<br>'; if ($error_string == '') { $result = db_query("SELECT id FROM users WHERE email='" . mysql_real_escape_string($email) . "'"); if (mysql_num_rows($result) > 0) $error_string .= 'That email address is already registerd.<br>'; else { $email = mysql_real_escape_string($email); // protect against SQL attacks $name = mysql_real_escape_string($name); $password = sha1($password); // hash password db_query("INSERT INTO users (email, name, password) VALUES ('{$email}', '{$name}', '{$password}')");echo "Hello World"; exit(); } }}function isValidEmail($email = ''){ return preg_match("/^[\d\w\/+!=#|$?%{^&}*`'~-][\d\w\/\.+!=#|$?%{^&}*`'~-]*@[A-Z0-9][A-Z0-9.-]{1,61}[A-Z0-9]\.[A-Z]{2,6}$/ix",$email);}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <title>Register</title> <style type="text/css"> .error_text { color: #FF0000; width: 400px; text-align: center; } .left_box { float: left; width: 150px; text-align: right; padding-right: 5px; } .right_box { clear: right; } </style> </head> <body> <div class="error_text"><?php echo $error_string; ?></div> <form action="register.php" method="post"> <input type="hidden" name="page_mode" value="register"> <div class="left_box">Email address</div> <div class="right_box"><input type="text" name="email" size="30" maxlength="255" value="<?php if (isset($email)) echo $email; ?>"></div> <div class="left_box">Name</div> <div class="right_box"><input type="text" name="name" size="30" maxlength="255" value="<?php if (isset($name)) echo $name; ?>"></div> <div class="left_box">Password</div> <div class="right_box"><input type="password" name="password" size="30"></div> <div class="left_box">Confirm Password</div> <div class="right_box"><input type="password" name="conf_password" size="30"></div> <div class="left_box"> </div> <div class="right_box"><input type="submit" value="Register" size="30"></div> </form> </body></html> thankyou.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <title>Thank You</title> </head> <body> Thank you for registering, click <a href="login.php">here</a> to log in. </body></html> login.php <?phpsession_start();require_once 'db.php';$page_mode = isset($_POST['page_mode']) ? $_POST['page_mode'] : '';$error_string = '';if ($page_mode == 'login'){ $email = $_POST['email']; $password = $_POST['password']; if (trim($email) == '' || trim($password) == '') $error_string .= 'Please enter your email address and password.<br>'; else { $result = db_query("SELECT id, name, password FROM users WHERE email='" . mysql_real_escape_string($email) . "'"); if (!($row = mysql_fetch_assoc($result))) $error_string .= 'The email address was not found.<br>'; elseif ($row['password'] != sha1($password)) $error_string .= 'The password did not match.<br>'; else { $_SESSION['user_id'] = $row['id']; $_SESSION['user_name'] = $row['name']; $_SESSION['user_email'] = $row['email']; header('Location: index.php'); exit(); } }}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <title>Register</title> <style type="text/css"> .error_text { color: #FF0000; width: 400px; text-align: center; } .left_box { float: left; width: 150px; text-align: right; padding-right: 5px; } .right_box { clear: right; } </style> </head> <body> <div class="error_text"><?php echo $error_string; ?></div> <form action="login.php" method="post"> <input type="hidden" name="page_mode" value="login"> <div class="left_box">Email address</div> <div class="right_box"><input type="text" name="email" size="30" maxlength="255" value="<?php if (isset($email)) echo $email; ?>"></div> <div class="left_box">Password</div> <div class="right_box"><input type="password" name="password" size="30"></div> <div class="left_box"> </div> <div class="right_box"><input type="submit" value="Log In" size="30"></div> </form> </body></html>
  10. Sorry for the double post.i got this message from the page when i registered.Warning: preg_match() [function.preg-match]: Unknown modifier '+' in /www/zxq.net/p/o/k/pokemoncratoz/htdocs/register.php on line 47Please enter a valid email address.The password and confirmation password do not match.
  11. this is a online mmorpg (massive mulitiplayer online role playing game.).The above page is just a testing page i made.i have to make everything secret there or else members will start registering.
  12. so what should i change it into to make it perfect like this $conf_password= $_POST['conf_password'];
  13. hi i quite made a script like this but when i enter the data into it it says please enter a correct confirmation password by the way check it your selfs herewww.pokemoncratoz.zxq.net/register.phphere is the code please tell me where is the problem <?phprequire_once 'db.php';$page_mode = isset($_POST['page_mode']) ? $_POST['page_mode'] : '';$error_string = '';if ($page_mode == 'register'){$username = $_POST['Username'];$email = trim($_POST['Email']);$password = $_POST['Password'];$Confirm_password = $_POST['Confirm_password'];if (!isValidEmail($email))$error_string .= 'Please enter a valid email address.<br>';if ($Username == '$Username')$error_string .= 'Please enter your username.<br>';if (strlen(trim($Password)) < 6)$error_string .= 'You must enter a password of at least 6 characters.<br>';if ($password != $Confirm_Password)$error_string .= 'The password and confirmation password do not match password.<br>';if ($error_string == ''){$result = db_query("SELECT id FROM user_info WHERE Username='" . mysql_real_escape_string($email) . "'");if (mysql_num_rows($result) > 0)$error_string .= 'That $Username username is already registerd.Please Select another one.<br>';else{$Username = mysql_real_escape_string($Username);$Email = mysql_real_escape_string($Email);$password = sha1($password);db_query("INSERT INTO user_info (Username, Email, Password,Trainer,Pokemon) VALUES ('$_POST[Email]', '$_POST[Username]','$_POST[Password]','$_POST[01]','$_POST[02]','$_POST[03]','$_POST[04]','$_POST[Bulbasaur]','$_POST[Charmendar]','$_POST[Squirtle]','$_POST[Pikachu]')");header('Location: thankyou.php');exit();}}}function isValidEmail($email = ''){return preg_match("/^[dw/+!=#|$?%{^&}*`'~-][dw/.+!=#|$?%{^&}*`'~-]*@[A-Z0-9][A-Z0-9.-]{1,61}[A-Z0-9].[A-Z]{2,6}$/ix",$email);}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Register</title><style type="text/css">.error_text {color: #FF0000;width: 400px;text-align: center;}.left_box {float: left;width: 150px;text-align: right;padding-right: 5px;}.right_box {clear: right;}</style></head><body><div class="error_text"><?php echo $error_string; ?></div><form action="register.php" method="post"><input type="hidden" name="page_mode" value="register"><div class="left_box">Email address</div><div class="right_box"><input type="text" name="Email" size="40" maxlength="255" value="<?php if (isset($email)) echo $email; ?>"></div><div class="left_box">username</div><div class="right_box"><input type="text" name="Username" size="30" maxlength="255" value="<?php if (isset($Username)) echo $Username; ?>"></div><div class="left_box">Password</div><div class="right_box"><input type="password" name="Password" size="30"></div><div class="left_box">Confirm Password</div><div class="right_box"><input type="password" name="Conf_password" size="30"></div><h1>Please Select your trainer</h1><p>This is your Trainer Images</p><input type='radio' name='Trainer' value='01' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/rstrainer00.png"/><input type='radio' name='Trainer' value='02' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/rstrainer00.png"/<input type='radio' name='Trainer' value='03' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/rstrainer00.png"/><input type='radio' name='Trainer' value='04' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/rstrainer00.png"/><h1>Please Select your Pokemon.</h1><p>Hope it will surely help in your journey.</p><input type='radio' name='Pokemon' value='Bulbasaur' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/Bulbasaur.png"/><input type='radio' name='Pokemon' value='Charmendar' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/Charmander.png"/><input type='radio' name='Pokemon' value='Pikachu' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/Pikachu.png"/><input type='radio' name='Pokemon' value='Squirtle' ><img src="http://i304.photobucket.com/albums/nn178/pokemoncratoz/squirtle.png"/><div class="left_box"> </div><div class="right_box"><input type="submit" value="Register" size="30"></div></form></body></html>
×
×
  • Create New...