Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Downloading files

Posted by: madaxeman Apr 11 2018, 04:25 AM

How do I use html to do the following

1. User clicks on a button
2. User is asked to enter their email address
3. Message sent to user's email address with link to file for downloading
4. At the same time sends an email to me to notify me of the user's email address

Posted by: pandy Apr 11 2018, 06:42 AM

You don't. Not with HTML. You need server side scripting at least for the email you are going to send. Maybe also to generate a unique one time URL for the download of you don't want the user to be able to share the download URL.

Posted by: madaxeman Apr 11 2018, 06:48 AM

QUOTE(pandy @ Apr 11 2018, 06:42 AM) *

You don't. Not with HTML. You need server side scripting at least for the email you are going to send. Maybe also to generate a unique one time URL for the download of you don't want the user to be able to share the download URL.


I thought that would be the case. Can you suggest some scripting to achieve what I am trying to do?

Posted by: CharlesEF Apr 11 2018, 10:32 AM

I would suggest you check with your web host provider to find out which server side languages they support. If they support PHP I would go with that.

Posted by: madaxeman Apr 11 2018, 10:36 AM

QUOTE(CharlesEF @ Apr 11 2018, 10:32 AM) *

I would suggest you check with your web host provider to find out which server side languages they support. If they support PHP I would go with that.

They do support php, but I dont know enough of php to write the code. Can anyone help?
please?

Posted by: CharlesEF Apr 11 2018, 12:41 PM

QUOTE(madaxeman @ Apr 11 2018, 10:36 AM) *
They do support php, but I dont know enough of php to write the code. Can anyone help?
please?
Do they support any other server side language that you know?

If you do have to use PHP then yes, someone on this forum can help. The good thing about PHP is that there are plenty of examples on the internet, search example: 'php send email'. I don't think anyone will write the code for you (at least not for free) but if you put the effort in to write your own code then you can post that code along with an explanation of the problem you are having. I'm sure someone can help.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)