Hello Dreamweaver world,
Just got a quick question im stuck on.
I am creating a simple form including Name, Email and Message. The trouble is I want to use the same form on many different pages but still being able to tell which URL the form was sent from. I see that I want a hidden field in the form but how would I go about making it send the URL with the other information sent?
Thanks in advance!
Best done server-side (ColdFusion, ASP, PHP, etc.) In ColdFusion you can use #cgi.script_name# to get the document name that contains the form.
location.href or document.URL will have the FQDN path including document name. Be sure to access the page via FQDN or http://localhost or http://127.0.0.1. If you access it via file:\\\C:\path\to\document.htm, then I'm not sure how that will work.
Europe, Middle East and Africa