Need script for non-database login

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

Post Reply
RiddeN
Forum Newbie
Posts: 4
Joined: Thu Jul 30, 2009 6:45 pm

Need script for non-database login

Post 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.
Last edited by RiddeN on Wed Aug 05, 2009 8:24 am, edited 1 time in total.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Easy Help?

Post 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.
RiddeN
Forum Newbie
Posts: 4
Joined: Thu Jul 30, 2009 6:45 pm

Re: Easy Help?

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Easy Help?

Post 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.
RiddeN
Forum Newbie
Posts: 4
Joined: Thu Jul 30, 2009 6:45 pm

Re: Easy Help?

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Easy Help?

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Easy Help?

Post 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.
mars_rahul
Forum Newbie
Posts: 12
Joined: Thu Aug 06, 2009 12:22 am

Re: Need script for non-database login

Post 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.
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: Need script for non-database login

Post 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.
Post Reply