![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Professional Programmer
|
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:
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! ▄▄▄▄ |
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Professional Programmer
|
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 |
|
|
|
|
|
#4 | |
|
Professional Programmer
|
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:
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! ▄▄▄▄ |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |