jdoe Posted May 8, 2006 Share Posted May 8, 2006 Here's my dilemma/prospect:Say we've got a dynamically generated static (cached) HTML page comprising a list of blocks of information (text). I'd like to add to the bottom of each of these blocks a link which'll lead to a second page, created on the fly, dynamically, using a different template than the list-page's, which will display the exact same information in the block which led the visitor here.This is the idea, but I haven't the foggiest where to start looking for info/tutorials on such a concept. I've been searching for info on PHP and "POST" and "GET," but the words are so common that searches bring up irrelevant content (heh); as well, from the trickles of info I have found, it seems these methods're pretty much form-field exclusive and won't be of help (?). I'm guessing it could be done with cookies somehow as well, but if at all possible, I'd like to keep the whole pass invisible -- done in a manner that doesn't touch the visitor's computer at all.I've thought, of course, that it may be more efficient (or would it?) to generate the individual pages, and have the list excerpt the blocks of info from them, not unlike blog systems' excerpt functions ("Read more..."), but, as evidenced by the fact that I'm trying to modify an existing script rather than build one from scratch, this'd require more code skill that I've got at the moment.The structure I've devised as example in mind only is marking/wrapping each block with some type of special tag, which is present or related to a special tag in the link, which'll pass the information (formatting and all) contained in the tags thru to the next page. Am I very far off?How would something like this be done? Is it even possible? Am I getting in over my head?Any help, so much as a point in the right direction, would be much, [b][i]MUCH[/i][/b] appreciated! Quote Link to comment Share on other sites More sharing options...
ober Posted May 8, 2006 Share Posted May 8, 2006 Your idea is a little confusing as you put it, but I think you can probably do what you're suggesting by having the link call a quick javascript function that'll grab the text from the correct box and then redirect the user the page that handles the chosen text.It's hard for me to specify anything more since I don't know where the info is coming from, how much of it there is, or what you're doing with it on the other end.Do you have a website we could look at? Quote Link to comment Share on other sites More sharing options...
jdoe Posted May 9, 2006 Author Share Posted May 9, 2006 Sure! The info's dynamically generated, parsed from an array into a static page. I made a quick, totally noobish mockup to illustrate what I mean:An [a href=\"http://jdoe.awardspace.us/example_list.php\" target=\"_blank\"]example list[/a], which shows what the list looks like, an [a href=\"http://jdoe.awardspace.us/example_template.php\" target=\"_blank\"]example template[/a], which represents the template the second page'll be generated from, and an [a href=\"http://jdoe.awardspace.us/example_result.php\" target=\"_blank\"]example result[/a], which is what I'd like the link from the list to achieve; the first link in the example list illustrates what I'd like the link to achieve, a clean pass to a dynamic result page.The whole concern is with the method of the pass from the list page (thru the template), to the result page. It'd be best if the whole thing could be achieved without cookies or javascript (which the visitor may have disabled in their browser), using some header method (??), but any method that'll work will be a step in the right direction!Thanks for the help and thought so far! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.