Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 02-25-2009, 05:45 PM Login Page Help
Junior Talker

Posts: 2
Name: Johnathan
Trades: 0
I want to make a regestration page to save data when people sign up for my site. I want to try to save it to the server in a .txt file or just a place where I can call to it later. Im not sure what language I should use but im sure it is a server side language. Im new at web disign so if anyone could shine some light in this area I would greatly appreciate it.
skulblaka is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-25-2009, 07:03 PM Re: Login Page Help
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
That's right, you would want to use a server-side language. And, you would want to use PHP. I'm not exactly sure what you mean by 'login page' and 'registration page', but you will want to use some code similar to this:
PHP Code:
 <?php 
$database 
"emails.txt"
$file fopen($database"a+");
$size filesize($database);
$name $_POST['name'];
$email $_POST['email'];
if(
$_POST['submit']) fwrite($file"\"$name\" <$email>,");
?>
Put all of that into a page with a .php extension. Put this following code into that same file:
HTML Code:
<form method="post">
Name: <input type="text" name="name" size="20"><br />
Email: <input type="text" name="email" size="20"><br /><br />
<input type="submit" value="Subscribe" name="submit">
</form>
Then create a .txt file with the name of "emails.txt". What all this code is doing is processing the information put through the form, and then sending the user's info into the emails.txt file. If you play around, you will see that the code is extremely easy to modify.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 02-26-2009, 03:40 AM Re: Login Page Help
Junior Talker

Posts: 4
Name: RN Sahoo
Trades: 0
Can you please tell it clearly step by step
rs35 is offline
Reply With Quote
View Public Profile
 
Old 02-26-2009, 03:23 PM Re: Login Page Help
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Quote:
Can you please tell it clearly step by step
What do you mean, 'step by step'? I've noticed that what you've been looking for recently is a complicated registration/login script. What I just gave up there was previously an email newsletter script, that stores a user's info in a text file. I'm pretty sure it's not what you're looking for.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 02-26-2009, 05:45 PM Re: Login Page Help
Junior Talker

Posts: 2
Name: Johnathan
Trades: 0
Thank you very much for the scripts. To clarify I wanted to make a page where a user could create an account by making a user name and password with some basic information. Then I wanted to store that info on the server so that I could recall that at anytime so they could login.
skulblaka is offline
Reply With Quote
View Public Profile
 
Old 02-26-2009, 09:42 PM Re: Login Page Help
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Ah. I did a quick google search, and I figured that this would probably suit your needs.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Login Page Help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23986 seconds with 12 queries