I whipped this up real fast... I didn't see any other PHP logins around here. But then again, I didn't look for them .\ Sooo this basically is a neopets login which you can use in your PHP, its basically useless unless you wana make some sweet programs like an in browser auto buyer or something like that. Ok so first, you need to make a file called "index.html" and you put this in it: Code (Text): <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><form action="login.php" method="POST"></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Username:<input type="text" name="username" /><br></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Password:<input type="password" name="password" /><br></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><input type="submit" value="Login"></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"></form></li></ol></div> next up is the PHP part, this is the actual code part of the script and what not. make a file called "login.php" and put this code in it: Code (Text): <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><?php</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> $name = $_POST['username'];</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> $pass = $_POST['password'];</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> function login($name, $pass)</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> {</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> header("Location:http://www.neopets.com/login.phtml?username=".$name."&password=".$pass."&destination=%2Fpetcentral.phtml");</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> }</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> login($name, $pass);</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">?></li></ol></div> and now upload those two folders to your PHP hosting and visit the index.html. On index.html you will see a username box and a password box. Enter your neopets details in there and click login. It will redirect you to neopets and you will have been logged in. Oh yeah, before you login, make sure you log out of neopets that way you will know it works This was all completely written by me so uhh. no stealing just kidding do what you want with it :maha: :maha: :arf:
This could just be this though: Code (Text): <form action="http://www.neopets.com/login.phtml" method="get"> Username:<input type="text" name="username" /><br> Password:<input type="password" name="password" /><br> <input type="submit" value="Login"> </form> However, if you want to log them in and stay on your page you would need to use cURL, which is easy and I've done this before.