+ Post New Thread
Results 1 to 8 of 8
Coding Thread, Assistance Please... in Coding and Web Development; Can somebody help me create a form that gets the user name, and the last URL and sends it to ...
  1. #1
    CallumCatterall's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    45
    Thank Post
    10
    Thanked 11 Times in 2 Posts
    Rep Power
    7

    Red face Assistance Please...

    Can somebody help me create a form that gets the user name, and the last URL and sends it to an email? Both of these should be hidden though, so all you can see is the send/submit button. It can be coded in any format, and we use exchange if that helps? Thanks.

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    need a bit more information. What last URL? from where?

  3. #3
    CallumCatterall's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    45
    Thank Post
    10
    Thanked 11 Times in 2 Posts
    Rep Power
    7
    Hi, it would be the last URL from the browser. Eg if I start on google.com and go straight to microsoft.com the last URL would be google.com. I know in php this would be HTTP_REFERRER. Thanks again.

  4. #4

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by CallumCatterall View Post
    Hi, it would be the last URL from the browser. Eg if I start on google.com and go straight to microsoft.com the last URL would be google.com. I know in php this would be HTTP_REFERRER. Thanks again.
    That's not a referrer. Referrers is where it was linked from, So if google has a link to microsoft and you click it, it would become the referrer. If you type microsoft into the address bar you have no referrer (Unless I'm mistaken)

    And what username? You shouldn't be trying to get the "windows" username as such, If you have a logged into site you can store that username for moving internally within your site, but I'm assuming from your description you more want their real usernames? (I'd be curious to why aswell )

    Steve

  5. #5

    Join Date
    Oct 2010
    Location
    Cambridge
    Posts
    11
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    It's a bit hard to suggest a solution while guessing what you're trying to do? Is it some sort of form you want to fill in that gets a students previously visited websites?

  6. #6
    CallumCatterall's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    45
    Thank Post
    10
    Thanked 11 Times in 2 Posts
    Rep Power
    7
    Hi, sorry for not replying... I must be mistakes about the referrer then, again coding is not my strong point. The page is for Forefront TMG, when staff meet a blocked website they will be met with this page and then they can submit the site for approval. We need the usernames to see who has requested the site for approval.

  7. #7
    jamesreedersmith's Avatar
    Join Date
    Sep 2009
    Location
    Ruskington
    Posts
    1,140
    Thank Post
    77
    Thanked 251 Times in 225 Posts
    Rep Power
    76
    Would a form that specifically asks for a contact name and number/email and a reason for the unblock being needed and a timescale not be more useful.

  8. #8
    CallumCatterall's Avatar
    Join Date
    Oct 2011
    Location
    United Kingdom
    Posts
    45
    Thank Post
    10
    Thanked 11 Times in 2 Posts
    Rep Power
    7
    Looks like it is going to have to be...But the one we have now is just a submit button, and the staff don't like change.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 6
    Last Post: 15th June 2011, 11:27 PM
  2. Replies: 61
    Last Post: 29th November 2005, 08:00 PM
  3. Server Recommendation Please
    By altecsole in forum Hardware
    Replies: 29
    Last Post: 21st October 2005, 08:15 AM
  4. Recommend NAT box please
    By mark in forum Wireless Networks
    Replies: 21
    Last Post: 13th September 2005, 08:01 AM
  5. this is a test please ignore
    By russdev in forum General Chat
    Replies: 0
    Last Post: 23rd June 2005, 06:06 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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