Need script for non-database login
Moderator: General Moderators
Need script for non-database login
Ive been told this is pretty easy to do, but i have no skills with php at all and i dont want to overload the people all ready helping me.
If possible, Could someone code me a script that functions as a sign up. Hence, i need a page where people just enter their name and all those names go on a list on a page. IM NOT LOOKING FOR A USERNAME DATABASE LOGIN. Just something i can use for simple tournament sign ups or something.
Also, I could use a script that logs statistics for the games played. I can type them in manually or w.e. I just need it set up.
Any help of either of these would be much appreciate. TY Community.
If possible, Could someone code me a script that functions as a sign up. Hence, i need a page where people just enter their name and all those names go on a list on a page. IM NOT LOOKING FOR A USERNAME DATABASE LOGIN. Just something i can use for simple tournament sign ups or something.
Also, I could use a script that logs statistics for the games played. I can type them in manually or w.e. I just need it set up.
Any help of either of these would be much appreciate. TY Community.
Last edited by RiddeN on Wed Aug 05, 2009 8:24 am, edited 1 time in total.
Re: Easy Help?
I don't mean to sound rude, but this forum is for helping people code, not free labour.
If there's a particular part you're having difficulty with, I'm sure people here will be happy to help. If you simply want the script written for you, you may want to look for someone to hire.
If there's a particular part you're having difficulty with, I'm sure people here will be happy to help. If you simply want the script written for you, you may want to look for someone to hire.
Re: Easy Help?
Yeah, Ill admit im a complete newb. I dibble and dabble and know how to edit. But when it comes to writing my own i am clueless. I guess i took the name of the forum "volunteer work" literally. Nonetheless, if anyone is willing to help id really love it.
Re: Easy Help?
Omg, sorry, I completely missed that this was in the volunteer forum.
My bad, I aplogise
I now feel it's necessary to help you due to my embarrassment
Anyway, the fundamentals will be like this:
This will require a table with the structure id: int primary key auto increment, name: varchar with whatever length. Anyway, this is just very basic. It should get you going though. If you have any problems, feel free to post back.
And, sorry again
All the best,
Jack.
My bad, I aplogise
I now feel it's necessary to help you due to my embarrassment
Anyway, the fundamentals will be like this:
Code: Select all
//if the form hasn't been submitted
if($_SERVER['REQUEST_METHOD'] != 'POST')
{
echo '<form method="post">
<input type="text" name="name" />
</form>';
}
//the form has been submitted!
else
{
mysql_connect('server', 'admin', 'pass') or die(mysql_error());
mysql_select_db('db') or die(mysql_error());
$name = mysql_real_escape_string($_POST['name']);
mysql_query("INSERT INTO `table` (`id`, `name`) VALUES (NULL, '$name');") or die(mysql_error());
echo 'Name added to db';
}
And, sorry again
All the best,
Jack.
Re: Easy Help?
Ty for doing that. And no need to apologize. But, i have no idea what im suppose to do with that lol. Told u im a newb
Re: Easy Help?
Yes, this is the problem with someone who has essentially no coding skills asking for help in a Developer's forum. I recommend you go back to your original post and edit the Subject to say what you want--something like "Need script for non-database login". The combination of your lack of knowledge and a totally meaningless Subject line will get you nowhere. If you do as I suggest, there's a chance someone will be willing to help you.
Re: Easy Help?
Well, that's basically it - you don't have to anything except make a database and a table.
If you've got a host, you need to upload the script to your server.
I'm not really sure how else to help...if you still don't know what to do, I think you need to learn a bit about websites in general - not necessarily php.
If you've got a host, you need to upload the script to your server.
I'm not really sure how else to help...if you still don't know what to do, I think you need to learn a bit about websites in general - not necessarily php.
-
mars_rahul
- Forum Newbie
- Posts: 12
- Joined: Thu Aug 06, 2009 12:22 am
Re: Need script for non-database login
I can understand your problem. Before doing anything in web application, you at least have normal level of understanding of PHP, and what is login system.
Better you consult to PHP Tutorials, and google "Login Process".
Good Luck. Even though if you have problem then we are also there to help you.
Better you consult to PHP Tutorials, and google "Login Process".
Good Luck. Even though if you have problem then we are also there to help you.
- akuji36
- Forum Contributor
- Posts: 190
- Joined: Tue Oct 14, 2008 9:53 am
- Location: Hartford, Connecticut
Re: Need script for non-database login
I can help you out. Although you decribe a login in form conneted
to db. A simple form would do. It just collect data and can
be sent to your email address. I believe this is what you
need. A database, xml , or even excel could hold the
data for you the form contains.
to db. A simple form would do. It just collect data and can
be sent to your email address. I believe this is what you
need. A database, xml , or even excel could hold the
data for you the form contains.