close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to receive an url from form.

Thread began 4/25/2015 2:57 pm by Kumel | Last modified 4/27/2015 7:52 pm by Ray Borduin | 857 views | 7 replies |

Kumel

How to receive an url from form.

i have a normal contact form & lets say i want to receive url as well when form is sent. lets say person was at: enquire.php?id=12

So i wanna receive enquire.php?id=12 into my email. how its done?

In email attachment, i choosed server varaible & then REMOTE_ADDR

<?php echo ((isset($_SERVER["REMOTE_ADDR"]))?$_SERVER["REMOTE_ADDR"]:""); ?>

But i dont seem to receive it on my mail (the link)

Sign in to reply to this post

Ray BorduinWebAssist

I think that would return the IP address.... if you want the page url try using 'REQUEST_URI'

Sign in to reply to this post

Kumel

the page is here: http://shrishtiart.com/enquire.php?id=11231

id can be changed all the time.. so its basically to track id.

Sign in to reply to this post

Ray BorduinWebAssist

Put the Server variable into a hidden form element as the form submits. The action of the form doesn't have the url parameters, so it won't carry over to when the email is sent. By adding it to a hidden field you can refer to the hidden form element when you send the email.

Sign in to reply to this post

Kumel

wooo! that really made sense to me. you cleared most of my doubt which i had earlier. Thanks a lot Mr.Ray.

Really appreciate it. (y)

Well is there any way to save form field once field?
For the same enquire form.
Everytime there can be different id to track be sent to mail so it would be great if form field remains saved.
May be adding checkbox to remember fields entered earlier.

Sign in to reply to this post

Ray BorduinWebAssist

There is a "persistent form" server behavior that comes with DataBridge... you can use it to automatically save the form field values in either a cookie or session and re-populate for subsequent visits.

Sign in to reply to this post

Kumel

any tutorials over the same? or how is it done?

Sign in to reply to this post

Ray BorduinWebAssist

Just apply the persistent form server behavior and then use the bindings to set the values of the form fields from the persistent form entry that will become available.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...