Click to See Complete Forum and Search --> : pass value in href tag


arthur
01-02-2004, 02:42 PM
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?)

Khalid Ali
01-02-2004, 03:40 PM
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

arthur
01-03-2004, 08:37 AM
Thanks Kalid, looks like a get rather than a post. This will do the trick.