The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> write file on server side
DS92
post Feb 3 2019, 11:12 AM
Post #1





Group: Members
Posts: 5
Joined: 5-October 16
Member No.: 24,870



Goodmorning, I would like that input on html page are automatically saved in a txt file on server. I found that it could be reach with javascript and php scripts but I couldn't understand how.
The next step could be modify the file and read it in order to find if the client input are already in the file.
Could someone help me? thank you very much
Best Regards
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
DS92
post Feb 4 2019, 04:48 AM
Post #2





Group: Members
Posts: 5
Joined: 5-October 16
Member No.: 24,870



Thank you very much, I would like that when I submit start a javascript which call a php o nodejs code to save user inputs in file txt or change txt file. I available to write server side in python php or nodejs codes. I don't know Perl code
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 4 2019, 11:03 AM
Post #3


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(DS92 @ Feb 4 2019, 10:48 AM) *

Thank you very much, I would like that when I submit start a javascript which call a php o nodejs code to save user inputs in file txt or change txt file.

You don't need javascript for that, just use the server-side script's URL in the form's ACTION attribute and the script will run automatically when the form is submitted. But if you must use javascript, it can be done with an Ajax request.

QUOTE
I available to write server side in python php or nodejs codes. I don't know Perl code

Wth PHP this one can be used: http://php.net/manual/en/function.file-put-contents.php

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 11:12 PM