www.webdeveloper.com
Results 1 to 3 of 3

Thread: pass value in href tag

  1. #1
    Join Date
    Nov 2002
    Posts
    112

    pass value in href tag

    I am writing an opt-in/out email script in html/php. I want to let someone click a link in an email my automailer sends them and then go to an unsubscribe php web page.

    How do I make that unsubscribe link in the email know the id of the person who wants to unsub, so the unsub php page will update the database for that specific user?

    (Am I explaining myself correctly?)
    Arthur

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,119
    add the user id to the end of the links url
    http://somelink.com?user_id=1122

    you should be able to do the above as you mentioned u have server side scripting access
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Nov 2002
    Posts
    112
    Thanks Kalid, looks like a get rather than a post. This will do the trick.
    Arthur

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles