Eliminating Frames
I have a html thing with a frame. The top has buttons controlling the site and the bottom has info. I get the redirection working but don't know how to get rid of the bottom frame. What happens is that the top frame gets stuffed with the second pages stuff an dhte bottom frame stays static. If I could eliminate the second frame when I redirect, it would work perfectly.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Pulldowns (eliminating Doubles)
I have one table with (amongst others) SUBJECTS. Now every user has subjects so there are doubles (user 1 has NEWS, user 2 had NEWS). On 1 page I want a pulldown that lists these subjects and currently I'm using this: $q = "select onderwerp from mailupdate;"; $r = mysql_query($q); echo "<select name="onderwerp">"; for($i=0;$i<mysql_num_rows($r);++$i) { $arr = mysql_fetch_row($r); echo "<option value="".$arr[0]."">".$arr [0]."</option>"; } echo "</select>"; But I want to eliminate the doubles (just one timme NEWS and not every time it appears in the table.
Eliminating File Extensions
I would like all of my webpages to stop displaying the ".php" or ".html" extensions. How do I do this without rewriting the URLs?
Eliminating Spammers From Adding Records?
I have a website that allows users to add records for their events. Recently I've had a bunch of spammers coming in. Do you have any tips on how to keep them from entering bogus information. I have started checking for any "http" in some of the fields but I want to make it even harder for them. Is there a way to check what the referring page is and if it is not the right one to produce an error?
Eliminating Passed URL Variables For Multiple Listings On A Page
I have a page with a list of several users, each hyperlinked to another page of 'more info' about that user. The hyperlink contains the UserNumber, UserRegion, and UserStatus, and the receiving page picks up the data in the passed URL. This works well, but I'd like to eliminate the passing of these variables in the URL. One way is to make a graphic ('More Info') that can be clicked to submit a form. Each 'More info' graphic from the dynamically created page could hold the UserNumber, but how can I pass several variables with a single click? On some pages, there can be 100+ users, and I hate to have 100+ separate forms and hidden fields. I thought of using session variables, how can I know which user was clicked to set the session variables?
Frames In Php
HI. I have a very successful private members club with all pages protected via authentication, I now want to include a section using frames, I have this already in html but I wish to have the frameset protected as well. I realise that this is not going to be a quick convert but my question's are can this be done in php using 3 frames, if so can someone please give me some pointers as to start and / or point me in the direction of some information on this subject, books I have bought make no mention of frames in php.
Frames And PHP
I actively read through the articles here and find them a extremely helpfull as I am just entering into PHP. Today came across this article "How does the PHP website colorize the code snippets?" and followed the link <a target="_blank" rel=nofollow href="http://daevid.com/">[link]</a> and noticed he is using IFRAME in the site. What are the Experts views on FRAMES and PHP. Surely "include" replaces the...
Php And Frames
I have a frameset and i want it to have php cod in the same file. Since there is no <body> tags can I add php? my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Admin Panel</title> </head> <?php require_once('authentication.php'); ?> <frameset cols="20%,80%" framespacing="0" border="0" frameborder="NO"> <frame src="admin_sidebar.php" name="sidebar" scrolling="no" noresize frameborder="yes"> <frame src="admin_body.php" name="body" scrolling="auto" noresize> </frameset><noframes></noframes> </html>
Frames And Php
frames and php. i have ------------------------- ---------------------------------------- | Button | Frame 1 | | ---------------------------------------- -------------------------- ---------------------------------------- Frame 2 ----------------------------------------- i have two different outputs,output1 and output2. when ever i press the button in form i should get output1 in frame 1 and then after 10 seconds i should get the output 2 in frame2.
PHP And FRAMES?
I'm developing a website which incorporates a header section at the top, side areas and a central area. If I was developing the site with straight HTML, I'd simply use FRAMES. However, by using PHP I thought I'd be able to get around this as I use a single PHP to decide what information should be present in each area of the page and render it appropriately. However, I also need to incorporate 3rd party HTML files into the centre section/area of my page. As these files include the full HTML page contents ie. with <BODY> and <HEAD> tags I'm wondering how best to do this. As far as I can see, the only way I can do this is to incorporate frames into my PHP code. Without altering the contents of the 3rd party html files, is there any other way of doing this?. If I do have to have frames, what is the best method for integrating them with the PHP code?. Would you have seprate PHP scripts in each frame, or would you have a single script that is capable of generating each frame depending on variables past to it (and extracted using $_GET{}?).
PHP And Frames
I wanna have a web site seperated into two frames (an upper and a lower one). The upper frame contains kinda navigation bar with several buttons. When clicking on a buttons it will change its picture and stays that way. Meanwhile the lower frame switches to the responding URL. How can you do that using PHP ? I did it using JavaScript before, but JavaScript can (and should) be turned off.
$GLOBALS And Frames
I have a global variable in the main frame. $GLOBALS['name'] = $name; I tested it and the value is ok. echo ${'name'}; But I need to pass it (the value) to the top frame. Actually, I don't know what I need to put replacing the ???. <A href=../main_new.php?name=??? target=Main>Home</A>
Frames And Sessions
I ran into a problem and couldnt make out way it happened !. Basicly i got top bottom frames and the links target the middle frame. Now intially they were HTML files but then i needed to pass the session id so i converted it to *.php. Using the normal method of starting a session at the start...in both the top and bottom frames....i started getting errors. I get a different sessiod id number for the top frame, the bottom frame and also the files loading on the middle frame...so in total 3 different ones !!. Does n e one know why that happens ....and is there a solution to this problem?
Detecting Frames With PHP
Is it possible to use PHP to see if the person who is accessing ur website is using the frame set up or the non frame set up?
Consistency Without Frames.
I am beginning a shopping cart program, and I would like it to be able to post just about any html file that is sent to it, so that I can have it inject a side menu and top menu before showing the page. Our previous cart program does this, and it looks like it takes the HTML page, scans for the <BODY> tag and then puts its form contents in, how would one go about doing this efficiently? So basically I want my PHP script to scan for the <BODY> tag, then insert the menu HTML code, and the post the page, it isn't that difficult, and really I know how to do it, but I don't know how I would scan for a <BODY> tag that may change with each page.
Sessions And Frames
I have a frameset page made up of two frames, both needing to use variables from the same session. If I call session_start() at the start of both frames, will this create 2 seperate sessions?
Frames W/ PHP Question
If I load a framset containting 2 frames, lets say.. <frameset cols="25%,75%"> <frame src="http://www.example.com" name=left> <frame src="http://www.example.com" name=right> </frameset> Is there any way I can get at the code in those 2 frames from a 3rd frame using PHP? There is no way to do this in HTML or Javascript as far as I've been able to find.
Help Regarding Frames With Sessions
I am using frames in my website,main application links are present on the top of page above mainframe, in main window. These links have target=mainframe, thus opening respective pages in mainframe. I have put the session timeout period on each page so if some user remains inactive for 10 minutes, he will be redirected to logout.php...
Help With Sessions And Frames
I am using frames in my website, there are 2 frames in site. when sessions are expired the login page is displaying in the main frame, but the other frame as it is in above. why the above frame is not disappearing? is it means sessions are not expired in the above frame?
Redirection And Frames
My website contains a login page and as soon as the user succesfully logs in, he will be directed to the homepage that contains two frames (with cols=20%,*). The left frame contains the list of products, which are URLs with target as the right frame. Each page that loads in the right frame is a PHP page does session validation. If the session is timed out or the user types the URL of the page directly in the address bar (without logging in), he'll be redirected to login page with appropriate error message. Problem is, when the session times out and the user clicks on any of the links in the left frame, the login page loads into the *right frame*, which is not what I want. What I really want is, a way to load the login page as the "top level page" without any frames.
Sessions And Frames
I am having difficulty with PHP sessions and frames. Here is the setup. I have Page A which authenticates a user, opens and sets sessions variables, and opens a 2 framed page, Page B. In a frame of that page, Page B, is a menu. When you click on an option in the menu it opens, in the second frame on Page B, a page that also has two frames. My problem is that the session variables are carried from Page A to the framed Page B, particularly the menu, but after the user clicks on the option in the menu and the page loads in the second frame on page B the session is not carried over. code: <?php session_start(); $sessionid = session_id();?> at the top of all of the pages. Any ideas? I would definitly prefer not to use the URL method, but if that is what is necessary I would appreciate exactly how to do it.
Problem With Frames
I have a page, where user selects a database table. After pushing search -button, user goes to a page which is in frames. User makes a query at main frame and result goes to footer frame. My problem is that the pages don't get what database is in the question? Frame.php is in the way..everything works fine without frame.php. How to include or pass or somethinhg the variable from the firstpage.php trough frame.php to query.php page? I have used this: <?php print($DBtable);?> and I can see the information on the URL, what database is in question but not on the query.php page.
Alternative To Frames In Php?
everywhere I go, i get told "don't use frames, use php instead" ok... so how do i go about it? I want a top banner that doesn't move, and a "contents" type list on the left (that may have a scroll bar) and the rest of the window is the main page (obviously) now, I dont want all 3 areas to be loaded/repainted when i click a link on the contents, just the "main area" Is this achievable in php?
Isset And Frames
I run an affiliate program, and everything was fine until I just found a bug today! The tracking script runs fine if the affiliate sends a visitor directly to (website.com/?ref=USERNAME) However, if the affiliate uses frames or some kind of tracking service (ie, the URL displayed in the address bar will be different), the script fails to give credit to the affiliate. The reason why I'm so sure is because I retrieve the name of the affiliate and display it on the home page under "Presented By:". This is mostly true when the affiliate is using Traffic Exchanges. Of course, Traffic Exchanges uses frames, so the URL displayed in the address bar is different from the affiliate URL assigned to each affiliate. The referral link of each member is: Code: http://www.mydomain.com/?ref=USERNAME And the index.php page has this script at the beginning: PHP Code:
PHP, Target, And Frames
I have a frameset with two column frames. A form is processed in the right frame. If the submitted form data were processed without errors, I want a congratulations page to be loaded into the left frame, otherwisean error message replaces the form in the right frame. Can this be done with PHP, and if yes, how?
Frames And Targetting
got a form together that browses a mysql database and all worx fine. Added a frame for the navigation buttons and i can't get it happening. The nav buttons are tested in the main frame script by using the button_name_x value since they are image buttons. The current index is passed using a hidden field. Because the action is targetted to a different frame i can't get the $current variable to increment in both frames. I think i need a method in the form description to call a static function that increments the $current and then calls the new target page.
POSTing Through Frames
I have what is perhaps a stupid problem. I have a form where users enter values (call this page1.php), and these then need to be POSTed to a page (page2.php) (code at bottom of this posting), that calls up a page with two frames (page3a.php and page3b.php) BUT, I need the values that the user entered in page1.php to be visible to page3a.php and page3b.php. When I submit from page1.php (running apache btw) I get "Method Not Allowed -- The requested method POST is not allowed for the URL /page2.php." Can anyone please tell me how to get this values posted from page1.php. to the targets where I need those values in page3a.php and page3b.php? Thanks, Ike This is page2.php: <HTML> <HEAD> <TITLE>VIOS Demonstration</TITLE> </HEAD> <frameset rows="360,*"> <frame src="page3a.php" name="top" scrolling="no" noresize FRAMEBORDER="0" BORDER="0" FRAMESPACING="0" marginwidth="1" marginheight="1"> <frame src="page3b.php" name="bottom" marginwidth="1" scrolling="no" noresize FRAMEBORDER="0" BORDER="0" FRAMESPACING="0" marginheight="1"> <noframes> <body> <p> <p>This web page uses frames, but your browser doesn't support them.</p> </body> </noframes> </frameset> </HTML>
Sessions And Frames
Is it possible that the variables are not saved during a session if the page is viewed in a frame. Something like that happened to me when i redirected to my page through cjb.net. The page worked under original url but wouldn't under .cjb.net.
Tables, Frames, CSS Or?
I have been working with PHP now for a few months and would like some knowledgeable advice on laying out PHP based web pages. I have noticed that some web pages that use PHP also use frames...like phpMyAdmin for instance. This gives the page easier readability when refreshing (do to PHP code) as the entries page does not update. But I was told many years ago by an elder that frames were not to be used...so what is the preferred layout for PHP pages?
Getting .swf Screenshot (frames)
I have a site where my users upload swf, i have tried endlessly to figure out a way of getting screenshots (like youtube and other video sites) of the swfs and saving it to my server?....I have tried google for hours....apparently no one has written something on that.....i know there are some gurus here that can help figure it out.
Check For Frames
Is there a way to check if a document is a part of a frameset? Search engines sometimes point to a single frame of my whole frameset. This will not show the whole site when clicked. I need something like: if main.php is not inside a frame it redirects to index.php.
PHP And HTML Frames
In my FIRST HTML page I have 2 frames (vertical). In frame 1 mypage.html is displayed. ( <FRAME SRC="mypage.html" NAME="frame1"> ) in mypage.html , I have a SUBMIT button. When I click that It will call a PHP script .In that some calculations will be done and results are stored in one array. My requirement is display that array contents in my FIRST HTML page's SECOND frame.
PHP Alternative To Frames
At the moment it works in that the nav bar is in one frame and the main section is in another. They designed it this way because in the main section there is a form for booking a trip through a third party and they want the nav bar to stay on top when that external page is called in. What I would like to know is...is there a way to call an external page through this form whilst keeping the nav bar at the top?
Reusable Frames?
Not sure if my Subject field is really the correct term but here's what id like to do: - I have a fairly image intensive site that im putting together, and i have created a hover image gallery to hold sections of images. When the user selects an image they are taken to a "drilled down" page, ie a large image, and a description of the image to the left; these are held in seperate containers. There will be potentially up to 340 images to handle when the site is complete, and so rather than having 340 html pages to display the images, i would like to "recycle" this page, in other words just load each image into that container when an image is selected.
Send Var To A Page With Frames
I am trying to pass a var to a frame page with a page.When the page opens the $job_id var is not passed to the frame page within. Is the a way I can pass the $job_id var to the jobdetails frame within the main page.
Redirection Problem With Frames.....
I have a page that consist of two frames..top and bottom.. in the top frame i display a banner and a timer.. at the bottom frame i use to display my pages. in the bottom frame i have this codes to fire up next2.php script which do navigation of my page <FORM ACTION="next2.php" METHOD="post" target="_self"> <input type="submit" name="answer" value="A" CLASS="colornormal" style="position:absolute; top:247; left:150;"> </FORM> in the next2.php script i use this line to navigate to my desired page...... header("Location: URL$Rand[$i].php"); The problem is the page wont display in the bottom frame.Since it will display properly if there is no frame(i try with no frame page).I figure out it must be the problem with the redirection line...but i dun know how to fix it... ok...problem number 2.. i have problem with the redirection line too..now its the onclick function...it wont display juz like above..it must be the redirection code....but i dun know how to do it the correct way..please advise...im desperate here... <input type="button" name="indeks" value="<?php $d=$c+1; echo "$d"; ?>" CLASS="colornormal" ONCLICK="window.location.href='http://localhost/Jpj_Test/JPJTEST/indeks_directpage.php?val=<?=$c;?>'"
Frames Passing Problem
I have all of my pages in frames, (so I can center the main page and still absolutely position stuff)...anyway..... I am passing info from forms..and I am having some problems. i can do it without the frames issue...but when I add frames into the picture things get a little nutty. I tried to pass them to the entire frameset, and then pass the individual variables to the desired frame....using the old php?this=<? echo $that; ?>....... but that doesnt seem to work....I guess the question would be. Is there any way that I can take form information and pass it without using a <FORM>? lets say I have three form fields...each a different php variable name..can I just pass the variables in the url? Any help would be greatly appreciated, I have tried a bunch of things and searched the forums and I cant find the answer.
Pass Php Values To Frames
i want to pass a value after a sucessfull loggin to an other frame which opens after retrieving the value some mo functions. but i ain't get it to work.
Session Error When Using Frames
I am building a signup form for a client, which takes the user details and process their credit card details. On the client website, they use frames which my signup page appears in the center frame. The website come up fine however when filling the form it does not save the session values from the previous page of the form. However if i go to the signup form direct, it saves all the session values. I cant see why it would make a difference in being in a frame. The two websites are on different domains and servers, but all of the signup form is on the same domain and server.
Passing Variables Between Frames?
I am new to php and I am created a simple page using buttons, radio boxes and text boxes. When I press any of them or write into any box and press the related button, the page refreshed to display what I wanted it to do. So far so good... Now I am trying to split this simple page into frames, two frames basically. On the smaller one to the left, there will be the same buttons and whenever these bottuns are pressed just like the single page one, the right hand side frame will refresh doing what it had done before. The entire page will not refresh though. I have seperated the buttons/text boxes section from the page printing lines using FRAME and FRAMESET from html. However I dont have any idea about how to pass the variables from one php frame to the other frame so that the target gets refreshed with new variable values. Can this be done by php?If yes, how? Any examples?
Passing Variables Between Frames
I am trying to pass variables between two frames in PHP. I want to get a variable from F1 to F2 and the variable that is now in F2 should pass back the variable to F1 and call another page.
Session Variables Through Frames -
I have implemented a login sequence using session variables for a PHP/MySQL DB which I took over development. I read some books and this NG and it seemed straight forward. However the website I have taken over uses two frames. The left hand side is always a navigation frame with the righthand side of the screen always being the target. I developed a main web page where login takes place and if successful a session variable is set which all other pages look for before processing (if it's not there they redirect to login page). All seems to work OK from my PC until I use another frame as a URL redirection to the PHP website. Therefore I want to use a nicer URL to where the actual PHP website is hosted and so set another website to use frame redirection to my PHP website DB. When I do this the login session variables no longer seem to work and I can no longer stay logged in. I assume this is something to do with where the actual session variables are being set but do not know enough to be sure. What is the problem and is there an easy way around it?
PHP And Flash Player? Frames?
I have a website where there is one main index.php page, and the content of the page changes via a menubar basically by checking $_REQUEST to see what page we should display (ie, "index.php?page=main" or "index.php?page=contact"), then an if statement REQUIRES the appropriate content in the middle of the page where the content changes. The problem I'm having is that I have a simple MP3 flash player that I need to play throughout the whole site consistently. But when the user clicks a menubar button, because it reloads the index.php, it also reloads the flash player and so the song jumps back to the beginning. I'm trying to figure out a way to prevent this flash player from reloading each time the page is refreshed with new content. Is there any way to do this, other than putting the flashplayer in a separate frame? That's the only solution I've been able to think of and I want to avoid frames.
Sessions / Redirects And Frames
I am trying to load a page into an <iframe> and attempting to stop the “framecontent.php” page from loading on its own i.e. not in the frame unless the var $textonly is found then I will load a text only menu. I do not want to use Javascript, as the text only version will be run without JS or CSS. When I run the code it works to a point, when I open up the framed paged in a new window it does not re-direct, as it should, although I have had it doing so at the cost of some other code area not working. I have got myself into a bit of a mess here and had it working but at different levels from the “framecontent.php” looping a redirect, the ”framecontent.php” page running without the frame when it shouldn’t and all sorts of issues. I do not want to send a query string to the “framecontent.php” other than $textonly as and when needed as the “framecontent.php” would be able to be loaded other wise when it shouldn’t. It would be easier for you guys to save these pages to your local PHP server if you have one to see how this breaks. I know my code is not as logical as it should be, been trying this for a few days now =/ I have attached the files as is with a txt extension for obvious reasons.
How To Convert Animated GIF Into Frames
Simply, I want to write a script that upload the animated GIF images and write the copyright text of my site on it. I'm using GD library to do that, but the problem is, that the gd library convert the animated gif image into FIXED image after writing. The image lose the animation and become normal gif image. I tried to convert the GIF animation into frames and save every frame in a single image, then write what I want on every individual image and finally recombine the frames again to generete the animation. But the the animation lose the correct (timing), I mean the frames repeated with very high spead and without the original timing.
How To Submit A Form To 2 Files (frames) ?
I need to submit a form to a frameset which contains 2 PHP files. Both PHP files need the form's data. The submited data is an array (arrayX[]) which contains an unknown amount of strings.
Preventing Browser-caching Between Frames
my web-application uses two frames, one with a list of database records, one with a record detail view. From the detail view there is "mark" function that will mark the respective record in the list frame (with a special color). Now this mark function is meant to toggle the mark status in the list frame, i.e. switch it on with the first click and off with the second. Problem is, the marking works, but the second click will not have any effect. Only when I click on another link in the list frame and _then_ click "mark" again will the marking be switched off. I assume this is due to the browser caching the request, and when it gets two times the same request (i.e. "list_records.php?marknode=42"), just ignores the second one. All no-cache parameters are already set in the headers, like: header("Cache-Control: no-store, no-cache, must-revalidate"); (as described in the PHP manual), but this doesn't seem to work. Or maybe the described behaviour is based on something else?
Refreshing Multiple Frames' Contents?
I have a page consisting of three frames. Top frame shows db rows, middle frame shows contents of a file, bottom frame has buttons to change file/row status and/or delete them. The desired bahaviour: after clicking the "change status" or "delete" button in bottom screen, the top and middle frames immediately show updated data. Achieving this in a <a href [...] is not a problem, I use the following Javascript line: <a href="status.php" target='bottom' Onclick="parent.frames[1].location.href='topcontent.html' parent.frames[2]='centercontent.html' return true;">link</a> But another page I use only updates a db entry and has no clickable items. Is it possible to have it automatically refresh any of the frames' content without the user clicking a link, immediately after the db query is executed ?
Loading Alternative To Frames To Parse Php
Is there a quick loading alternative to frames to parse php? We currently use a template but it loads every time and takes 50 times longer than the text being parsed.....
Frames To Display Menu Options
I am just starting web development after a long break (6 years). Last time I was developing frames were often used to display menu options on the side of the page. I was wondering as frames seem to be no longer used how would a menu bar on the left hand side of the website and possibly a bar along the top would be achieved in a php site?
|