Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Form and URL

  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    66
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Form and URL

    Hi there,

    I have a form that sends an email. Is there any way that when the user clicks "submit", it could also send the url that the form was sent from?

    Bit of a odd request but hey.

    Thanks

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    You could use $_SERVER['HTTP_REFERER'], though people can suppress it from their browser.

    You could have a hidden variable with $_SERVER['REQUEST_URI'], but people can easily amend the html using tools like firebug.

    If you need to make it reliable, make use of $_SESSION
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •