Page 1 of 1

Need script for non-database login

Posted: Thu Jul 30, 2009 6:49 pm
by RiddeN
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.

Re: Easy Help?

Posted: Thu Jul 30, 2009 8:12 pm
by jackpf
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.

Re: Easy Help?

Posted: Thu Jul 30, 2009 8:19 pm
by RiddeN
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?

Posted: Thu Jul 30, 2009 8:28 pm
by jackpf
Omg, sorry, I completely missed that this was in the volunteer forum.

My bad, I aplogise :bow:

I now feel it's necessary to help you due to my embarrassment :P

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';
}
 
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 :D

All the best,
Jack.

Re: Easy Help?

Posted: Mon Aug 03, 2009 6:29 pm
by RiddeN
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?

Posted: Mon Aug 03, 2009 6:35 pm
by califdon
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?

Posted: Tue Aug 04, 2009 6:43 am
by jackpf
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.

Re: Need script for non-database login

Posted: Fri Aug 07, 2009 6:15 am
by mars_rahul
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.

Re: Need script for non-database login

Posted: Fri Aug 21, 2009 3:56 pm
by akuji36
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.