dagonus Posted March 18, 2010 Share Posted March 18, 2010 I'm pretty sure this is a cake walk for most, but I'm only getting my feet wet on php at the moment. I'm trying to replace frames in a website of older design and running into a couple issues. Unfortunately, most tutorials about doing just that, seem geared for a websites that would use 2 frames in a frameset breakdown or at least only 1 changing frame to convert them to php. Accordingly, I've been web teaching myself to work out multiples. I've search high and low for explanations for modifying multiple pages and I haven't managed to find a concrete answer. I have a navbar in a table cell that will modify $main in the url (...?main=X). Main is used to determine what page is called in an include in a neighboring table cell. If that was all I needed, I'd be set. The problem is that a few of those pages that get included need to break themselves down into 2 cells(We'll call them A and B to distinguish them from the previous) and modify cell b based on links followed in cell a. I don't need any user input beyond selecting the links for data viewing. The problem that I run into is that if I go to set a variable in cell A, I lose the variable from the navbar that included A in the first place. I could just do an & in the url, but as I understand it, that's just asking for an Injection attack. Am I misguided or will I be alright if I just pass all my strings through array filters and throw out invalid characters in them? If using & is the way to go then I'll give that a go. I figure there's probably a way to simply modify a variable without tossing it in the URL, but I don't know how to do that. If that's the case and the best way to go about this, how do I do that? I appreciate this a lot. Thanks. Link to comment https://forums.phpfreaks.com/topic/195728-rookie-trouble/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.