it is probably a dummy question, but… I generate HTML document from a database. Some parts are generated as hyperlinks, which should contain additional information: Table name, ID of table row etc…
When user click on it, the program should extract and decode this information and generate another part of database as HTML document.
I can not figure out what is the best way to do it…
can anybody help?
thanx
What you’re after is the querystring. Take a look at Google, usually its http://www.google.co.uk but after you’ve done a search the URL is http://www.google.co.uk/search?q=mysearchterm Can you see that mysearchterm has been added to the link?
Give this a try, the hyperlink has actually sent “mysearchterm” to Google via the querystring. You can pass more than one variable like this by separating with an &. So you would pass the Table name, ID of table row in the link like this.
Take a look here to get you started, but be aware that anyone can edit these values so don’t pass anything secure.