Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 11th, 2007, 5:35 PM   #1
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
html write to .txt

I'm looking to create a small website with a user system and my problem is storing the user's names and passwords to a text file on the host machine. I've got a password and username form but I can't figure out how to write these to the text file once the user hits the submit button because I can't seem to find a proper html tutorial. Any help is appreciated.
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote
Old Jun 11th, 2007, 5:40 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Writing a file on the host is not an HTML task. It is a task for the server-side code, whether that be Perl, PHP, Python, or whatever.

When the form is submitted, the server sees it as a request and responds. How it responds depends on the setup. It may respond with a static page that is rendered by the browser, or it may execute a file and the executable will generate the information that is rendered by the browser.

In the second case, the executable may do a number of other things, such as communicate with files or databases on the host.

There is no answer to your question, currently, because you have given insufficient information. The web is chock-a-block with HTML tutorials, but you won't find how to write a file on the host there.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 12th, 2007, 12:33 AM   #3
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 3 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
I don't think html is cabable of reading or writing files as it is only a markup language. However JavaScript might help you accomplish your goal.

How to read and write files in JavaScript

I hope this helps
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote
Old Jun 12th, 2007, 1:47 AM   #4
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
I ended up using php. I had to learn a bit before I could manage to get it all working properly, but it was worth the effort and time spent. It always is..
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
start Learning HTMl smita HTML / XHTML / CSS 0 Mar 15th, 2007 7:38 AM
Basic HTML Tutorial - Reuben Keeney ReubenK HTML / XHTML / CSS 14 Mar 26th, 2006 5:50 AM
HTML =/= Programming Sane Coder's Corner Lounge 32 Mar 8th, 2006 2:50 AM
Want to upload, show as HTML and other things.... Invisible Other Web Development Languages 4 Jun 19th, 2005 7:51 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:18 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC