What I want to do is set a variable as the url of the current page, then carry that value from one page to another and make a link to that varible by using:
Originally posted by DanieLTomaS What I want to do is set a variable as the url of the current page, then carry that value from one page to another and make a link to that varible by using...
I have a habit of using sessions.
Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.
You didn't quote anyone, but if you were talkin' to me, that variable changes depending on the page requested - my purposes would need something that never changes.
Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.
Originally posted by DanieLTomaS How do I do this? I am developing a comment script for my site, and this is the last thing I need, so I really need to know!
Well if you only need it once, then you could use $_GET variables - might be easier.
Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.
Or wait a minute. Since I'm using a form on the first page, would it be better just to store the url in a hidden input element, and use $_REQUEST['hiddenelement'] ?
But, no - I was taking to the guy who originally asked the question. The idea of the 'address' was vague and so I made a couple of suggestions and then pointed him towards the manual. I'm not sure where sessions come into it, unless you pass session IDs through the query string...and I'm pretty sure you wouldn't do that
Bookmarks