pigeonbr
asked on
How to acheive with Dreamweaver 4: One click on text link, with two simultaneous actions taken
With Dreamweaver 4, is it possible to click a text link on a page and have two things happen at once, in my case, initiate a download, AND send me an email automatically, without intervention from the user, with a small message saying "Download initiated"?
ASKER
Ok, I see the idea of how to acomplish this. I'm not good in HTML, but could you give me a short code sequence that would , say, show me how to send an automated email to an email address (EX: myemail@hotmail.com) with the following Subject OR message text: "Download initiated" for example? Thanks!
Which language? PHP? ASP? ColdFusion?
ASKER
jason, I'm not a web programmer...so either one of those is unfamiliar to me, but if you have some example I will study it...I'M a Visual C++ programmer by heart :) Just do some personal web stuff...nothing exotic so I never really need to learn much about PHP etc so far. Thanks for any help. Appreciate it. If you can't, that's ok as well. :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you are a C++ programmer then I really recommend you use ASP.NET and the C# language, rather than PHP (Jason - you offence meant...!)
I use VB as part of ASP.NET (the other main choice) so I can only offer limited help, but there are TONS of books and online articles showing how to do an infinite number of server-side things with C#.
http://www.c-sharpcorner.com/1/send_mai1l.asp
If you're new to it all though, start at the beginning. The good thing about ASP.NET is that you don't need to know about HTML because that is all written for you.
I use VB as part of ASP.NET (the other main choice) so I can only offer limited help, but there are TONS of books and online articles showing how to do an infinite number of server-side things with C#.
http://www.c-sharpcorner.com/1/send_mai1l.asp
If you're new to it all though, start at the beginning. The good thing about ASP.NET is that you don't need to know about HTML because that is all written for you.
ASKER
Thanks jason...I will study this carefully. It points me in the direction I was lookng for.
Roucjie, thanks for your comment as well. I have way too much on my plate at this moment to get into learning new things, but thanks for the advice! Appreciate it for sure.
Thank you both!
Roucjie, thanks for your comment as well. I have way too much on my plate at this moment to get into learning new things, but thanks for the advice! Appreciate it for sure.
Thank you both!
Rouchie,
I'm totally offended.
;)
Pigeonbr,
Ok, good luck. I agree with Rouchie, though. It will be an easier transition for you to go to ASP.NET than to PHP. I didn't know you could embed C# via ASP.NET...
I'm totally offended.
;)
Pigeonbr,
Ok, good luck. I agree with Rouchie, though. It will be an easier transition for you to go to ASP.NET than to PHP. I didn't know you could embed C# via ASP.NET...
>> I didn't know you could embed C# via ASP.NET...
There are TONS of languages you can choose from! C# and VB are the most common, but the hardcore programmers are starting to use Python and Ruby.
Here is a list http://www.dotnetpowered.com/languages.aspx - PHP# is even on there, so now you've got to move over...!!
Given the extremely powerful object orientated approach (having the programming code in a seperate file that controls the page items' functionality), its a nice clean way to operate that keeps presentation away from the logic.
Reading that back anyone would think I work for Microsoft. Totally not true, I still think their releases are all patch-tastic.
There are TONS of languages you can choose from! C# and VB are the most common, but the hardcore programmers are starting to use Python and Ruby.
Here is a list http://www.dotnetpowered.com/languages.aspx - PHP# is even on there, so now you've got to move over...!!
Given the extremely powerful object orientated approach (having the programming code in a seperate file that controls the page items' functionality), its a nice clean way to operate that keeps presentation away from the logic.
Reading that back anyone would think I work for Microsoft. Totally not true, I still think their releases are all patch-tastic.
>> PHP# is even on there, so now you've got to move over...!!
Not in this lifetime.
Not in this lifetime.
You would need to get a scripting language involved to accomplish what you are asking for and this type of request isn't part of the DW built-in server behaviors. It's a relatively simple process to have a link that goes to a PHP (for example) page that contains nothing but a script that does the following:
1. fire off the email to you
2. send the headers out for a download and then push the file
3. redirect the user to a landing page
We would need to know more about your hosting setup and scripting experience to help you further.