How do I upload string to an FTP server and download them from ftp

Issues related to forms.
Post Reply
Necro PC
 
 
Posts: 4
Joined: Sat May 27, 2023 1:26 pm

How do I upload string to an FTP server and download them from ftp

Post by Necro PC »

Hello, I want to know how to upload string to an FTP server and download them from ftp using WYSIWYNG. Thank you
User avatar
Pablo
 
Posts: 22422
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How do I upload string to an FTP server and download them from ftp

Post by Pablo »

What do you mean by "upload string to an FTP server"?
Can you please be more specific?
Necro PC
 
 
Posts: 4
Joined: Sat May 27, 2023 1:26 pm

Re: How do I upload string to an FTP server and download them from ftp

Post by Necro PC »

I mean uploading a Text to a file in FTP Server and download a text file from ftp and show it content in a label in my website
Necro PC
 
 
Posts: 4
Joined: Sat May 27, 2023 1:26 pm

Re: How do I upload string to an FTP server and download them from ftp

Post by Necro PC »

I mean the user enter a text in a text area. Whan he hits Submit, that text will be uploaded to ftp,
MGD4me
 
 
Posts: 278
Joined: Tue May 02, 2017 11:56 pm
Location: British Columbia, Canada

Re: How do I upload string to an FTP server and download them from ftp

Post by MGD4me »

If I try to grasp the intent of what you are asking, you would need to first create a simple form. The form could be really basic, asking a user to input of a single line of text, or even a number of inputs.

When a user hits 'submit', the form would upload the information to the server and store them in a CSV file (spreadsheet), or into a MySQL database. Now that the data is stored 'somewhere', you would view the stored data using one of the solutions offered above, by Pablo.

But I get the feeling that you are actually asking for something more, so it would be helpful if you could explain what you are actually trying to achieve. Storing and retrieving data is pretty straight forward, but what exactly is the application? There might be better ways of doing what you need.
Necro PC
 
 
Posts: 4
Joined: Sat May 27, 2023 1:26 pm

Re: How do I upload string to an FTP server and download them from ftp

Post by Necro PC »

There is no database nor MySQL, I just want to upload the text entered by the user in the text area to a txt file on the ftp server
- I want to receive the content of a text file from an ftp server, and put it in a label when a button is pressed. That's it
User avatar
Pablo
 
Posts: 22422
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How do I upload string to an FTP server and download them from ftp

Post by Pablo »

There is no standard option for this, because this is not a common request.

So the closest solution is to use a CSV file instead .
User avatar
BaconFries
 
 
Posts: 5619
Joined: Thu Aug 16, 2007 7:32 pm

Re: How do I upload string to an FTP server and download them from ftp

Post by BaconFries »

want to receive the content of a text file from an ftp server, and put it in a label when a button is pressed. That's it
I am still confused by what you are asking. When you write "put it in a label" what are meaning. In HTML a label is used in form elements such as the input tag <input id="blue" value="colour"> the label is then written like
<label for="blue">Colour</label>
More information on this
HTML <label> Tag
https://www.w3schools.com/tags/tag_label.asp
In the software you can add this see the following
https://www.wysiwygwebbuilder.com/seo_assistant.html

If this is not what you are referring to then are you talking about "Labels" that you stick to a "Package" or "Products" or "Goods" so that it describes its contents... As mentioned it is not clear and confusing to what you are really wanting.
Is this what you are asking Saving text from a <textarea></textarea> to a .txt
https://codepen.io/hisamafahri/pen/MWjKrJp
Post Reply