Simple Upload Form

Please i need help with an upload form. It is supposed to get input (the url of a file on some other site) from a user then upload the file in the specified url into my own database. Is it possible?

The steps might be:

Ask the user for a url in a html form.

Store that url in a database table

Use cURL to fetch that data

then EITHER:

store the data as a string in your database table

OR:

cache the data in a file
do some post download analysis, and store the extracted data in your database table