sending data to website

chopperj

New Member
Joined
May 5, 2010
Messages
11
hi All,

I have a file that runs a onclose sub to save a csv to a networked location.
What i want now to do is send the same data to a website, what is the best way to do this?

Thank you
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Do you mean you want to upload the file to your (or someone else's) Web host or do you want to interact in some way with a Web page which is expecting its users to upload files through it?

If the former, you would do it manually using CPanel or FTP. If you want to automate the process, then I think the easiest way is to use FTP. I've used Stuart McCall's FTP Client very succesfully: it's quick and easy to install and it appears to works completely reliably.
 
Last edited:
Upvote 0
Do you mean you want to upload the file to your (or someone else's) Web host or do you want to interact in some way with a Web page which is expecting its users to upload files through it?

If the former, you would do it manually using CPanel or FTP. If you want to automate the process, then I think the easiest way is to use FTP. I've used Stuart McCall's FTP Client very succesfully: it's quick and easy to install and it appears to works completely reliably.


Hi Ruddles,
effectively i want (without the user even being aware) to save the contents of some cells to a database attached to a website. Does this help clarify?
 
Upvote 0
(1) You can upload a file en bloc to a Web server using FTP, so you could for example write some worksheet cells out to a CSV file and then use FTP to upload that file to a Web server provided you have access to the server. If you're doing this every time the workbook is used you're going to end up with multiple files on the server so some method of avoiding duplicated names will be required. What happens to the files once they're on the server is another question.

Stuart McCall's FTP package can handle all of that very neatly.

(2) If you want to add data from your worksheet to an actual database on a Web server, you need to understand what the database is (MySQL?), where it is and what methods you have at your disposal for adding data to it.

Typically you would write a PHP script which runs on the Web server and which is capable of interacting with a MySQL database using SQL commands, and you would invoke the script directly from your Web browser, passing any authentication information and the actual data to be stored to the script at the same time. The term commonly used for this technique is 'server-side scripting'.

(You may have seen URLs where the Web page's name ends with .php? This is a PHP script which sits on and runs on the Web server and you are invoking it from your Web browser. The list following the ? and separated by & are the data which your browser is sending to the PHP script.)

Not all Web hosts offer PHP and MySQL, so you'd need to check that.

---

Do you know which of these two options you want?
 
Upvote 0
(1) You can upload a file en bloc to a Web server using FTP, so you could for example write some worksheet cells out to a CSV file and then use FTP to upload that file to a Web server provided you have access to the server. If you're doing this every time the workbook is used you're going to end up with multiple files on the server so some method of avoiding duplicated names will be required. What happens to the files once they're on the server is another question.

Stuart McCall's FTP package can handle all of that very neatly.

(2) If you want to add data from your worksheet to an actual database on a Web server, you need to understand what the database is (MySQL?), where it is and what methods you have at your disposal for adding data to it.

Typically you would write a PHP script which runs on the Web server and which is capable of interacting with a MySQL database using SQL commands, and you would invoke the script directly from your Web browser, passing any authentication information and the actual data to be stored to the script at the same time. The term commonly used for this technique is 'server-side scripting'.

(You may have seen URLs where the Web page's name ends with .php? This is a PHP script which sits on and runs on the Web server and you are invoking it from your Web browser. The list following the ? and separated by & are the data which your browser is sending to the PHP script.)

Not all Web hosts offer PHP and MySQL, so you'd need to check that.

---

Do you know which of these two options you want?


Number 2 is what i want, are you able to recommend any tutorials or knowledge snippits?
Thank you
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,702
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top