View Full Version : Creating a form w/ libacts2?
iceman977th
21-08-2008, 04:32
So I've got the libacts stuff uploaded and configured to connect to my server. Thing is, I need to make a page that people can put in their username and password and be able to register with our TeamSpeak.
The entire root folder is located at http://977th.com/tsregister . What would I have to do to create a form?
I can find ways to set it up so they can only enter from a page on our forums. I just need to get the form up and going. :D
maxi1990
21-08-2008, 13:11
<?
if(isset($_POST["username"])) {
/*
* Insert your registering stuff in here
* use variables $_POST["username"] and $_POST["password"]
* perhaps you should check whether varibles aren't empty or somethink like that
* p.s.: you might have to include your teamspeak php library
*/
} else {
?>
<html>
<body>
<form action="<? echo $PHP_SELF ?>" method="post">
<p>Username: <input type="text" name="username" size="20" maxlength="30"></p>
<p>Password: <input type="password" name="password" size="20" maxlength="30">
<p><input type="submit" value="Register"></p>
</form>
</body>
</html>
<?
}
?>
iceman977th
22-08-2008, 01:42
Alright. Besides Absurd.php and the Absurd folder, is there anything else I need to make this form work? And does it matter on what location the folder is in?
maxi1990
22-08-2008, 15:23
The only thing you have to do is include Absurd.php and get a connection to your server to register people. Location of that script in general doesn't matter.
Maybe you should write some spam blocking functions into that script because it would be very easy to create hundreds of registrations.
iceman977th
24-08-2008, 08:41
The only thing you have to do is include Absurd.php and get a connection to your server to register people. Location of that script in general doesn't matter.
Maybe you should write some spam blocking functions into that script because it would be very easy to create hundreds of registrations.
Care to add that to the script above? :D lol sorry.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.