- Bungies Sam152
- |
- Noble Member
Ahhh, h3customs.com (I wrote the code for the first ever version of that website).
Interactivity in HTML is almost impossible to the point you want it. You will need to get something written in a side server scripting language such as php combined with SQL and a MySQL database. Then you will need to think of security and filtering and flood control.
In the end I don't think what your trying to do will bring that many more people and its not worth it for the amount of work.
Edit: This is the absolute most basic thing you would be looking at for the entering of gamertags let alone the displaying of them. Then there is the admin authentication and clear button. The following works based on the fact that you have a MySQL database, the settings are configured correctly to this code and there is a table called "registrations" in it.
<?php
if(isset($_POST['name'])){ //Runs following code if the submit button is pressed
$host="host"; //The host name of your SQL database
$user="user"; //The username of your SQL database
$pass="pass"; //Password for SQL database
$dbase="database"; //Database name
$connect=mysql_connect($host,$user,$pass); //Connect Function
if (!$connect) {//If it cannot connect
mysql_close($connect); //Ends the current connection to the database.
echo "Cannot connect to the first database!"; //Display the text inside the quotes.
}else { //If it does connect however...
echo ""; //Display the text inside the quotes upon connection.
}
mysql_select_db($dbase, $connect); //Selects database
$name = htmlentities(strip_tags($_POST['name'])); //Cleans the POST data
$posting = "INSERT INTO `registrations` ( name ) VALUES ( '$name' )"; //The SQL query
mysql_query($posting, $connect); //Runs the SQL query.
}
//Below: The form for submission
?>
<h1>Register</h1><BR><form method="post">
Gamertag: <input type="text" name="name"><BR>
<input type="submit" value="Enter">
</form>Seems a bigger hassle now doesn't it, I commented each line of PHP so you get a basic idea of whats going on. Oh and by the way, your server would need to be able to parse php for this to work.
In the end the way to attract more members and users is to offer unique content and/or experiences. Gimmicks like custom game registrations don't often work that well, an alternative would be a forum topic. That way people could chat about the games to come and have a better time.
I hope something works out for you,
Sam152
[Edited on 03.15.2008 11:16 AM PDT]