Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





How Do I Exit An Html Frameset As I Have A Link Which Has To Redirect Back To The Index Page?


I was just wondering in how do I exit an html frameset as I have a link which has to redirect back to the index page as shown below, which should not have the frames. header("location:index.php");




View Complete Forum Thread with Replies

Related Forum Messages:
Page Redirection - Link Index.html Page To A .php Pag
I have an index.html page with a link to a .php page This is the complete code of the .php page Code:

View Replies !
Index.htm Going To Login Page And Sending Back To Index Page
1: A visitors visits a.html page. decides to login and post comment. goes to login page and logs in then I want to send him back to a.html page how do I do that? Here is my login page and login.php page.

2: Same as above but I want to send them back after some time... while I make them view the error, why they have not been able to login. Code:

View Replies !
Want My User To Have To Go Back To The Index Page As Soon As They Login.
I am having a little trouble intergrating a login/user management script with my html pages. I have used the div tag put in my php in there and put the rest of the php where it is originally placed in the script. Here is my problem.

I would like my user to stay on the same main page while the login part changes(goes to the members area). I have tried using i-frames but if there is a link in one, the main page does not change the i-frame does. Can this be solved with more php. I do not want my user to have to go back to the index page as soon as they login.

View Replies !
How To Redirect A User BACK To The Page
how to redirect a user BACK to the page they were trying to access while not being logged in, AFTER they log in.

for example, i try to access page1.php, but i am not logged in so a header("Location: login.php"); directs me to the login page. then i login, and the script redirects me back to page1.php...

i tried this using the $SERVER['HTTP_REFERER'] variable but it doesnt give a value unless the user CLICKS on a link to the next page (redirecting using headers doesnt work)

View Replies !
Solution For Redirect At Page Index
by php which the fast solution for make redirection at homepage ?
Time ago read some solutions, but one most fast because not load
or not make a reload of itself page, not remember
exactly but was a solution more fast...

View Replies !
Redirect The User Back To The Page The Submited The Form From.
I have an email form on a site that I am working on. It sends from a small JS popup that is activated by clicking on a link. that form sends to a php page which sends the user entered variables to an email address. what I am looking to do is instead of going to a new page when the form is sent I want to redirect the user back to the page the submited the form from. I have it set up to send a hidden var to the php page with the full url of the origional form. here is the functional code I have on the php page. what is hapening is the email is being sent but the php page is being displayed instead of redirecting. Code:

View Replies !
MYSQL - Link To An Index Page
I'm working on a site which has several hundred articles stored in a MySQL database. On the bottom of the page are two links for the previous and next article. The site has been constructed in such a way that the database has fields containing the url of the previous and next pages (i.e. article.php?recordID=137) and these are pulled out of the DB in the form of links.

Rather than them having to add this to the DB every time a new article is added I'm trying to automagically do it in PHP. I've sorted the main part by taking the current article and either subtracting or adding it's ID by 1 to create the prev and next but I'm a bit stuck when it comes to the current (highest) article number. What I want it to do is link to an index page when there is no +1 (or -1 for the start).

View Replies !
Using Bakspace Cannot Link Back To Previous Page
i use backspace to link back to my previous page.. but it fails me ...showing webpage has expired .. what should i do??

View Replies !
How Do I Point The Link Back To The Original Page?
I have a link that creates a pop-up window.

<p><a href="javascriptopUp('calendar.php')">Calendar</a></p>

On the pop-up window the user selects a link. How do I point the link back to the original page? i.e. the page that created the pop-up window.

View Replies !
Making A 'Go Back' Link From An Errorous Feedback Page
I am working on a 'contact' page on my website. All the code is in contact.php When $name, $email and $message are uninitialised, the page loads with all the input fields.

If they are initialised, the page checks for errors. If there are no errors, a "success" message is displayed. If there are errors, the errors are displayed. In addition to displaying the errors, I'd like to have a link which goes back to the input fields (i.e. contact.php without $name, $email and $message initialised).

Making a link to contact.php does not work, as the variables are still initialised, I think, and therefore all the error messages are just displayed again. Hitting 'Back' in the browser works well - how do I make a link 'go back' though? (I think I saw some javascript 'go back' commands a few times before...)

Hitting 'Back' in the browser unfortunately resets/clears all the fields, if something was typed in. I'd like it if the fields would not be reset/cleared. Could I please get some advice on how I can solve this problem please? If I need to use cookies, sessions or something like that, then just let me know how I can make a 'go back' link - I don't know how to use cookies / sessions atm, and right now I don't feel like learning to use them.

View Replies !
Redirect A Link To Another Page After It Has Been First Used?
Is there any way to redirect a link to another page after it has been first used? Or even kill the link after its first use?

View Replies !
Redirect At Other Link Page
by php which the fast solution for make redirection at homepage ?
Time ago read some solutions, but one most fast because not load
or not make a reload of itself page, not remember
exactly but was a solution more fast...

View Replies !
Redirect Page Click A Link
I have page1.php. Click a link on it and it goes to redirect.php. This uses a redirect to page3.php.

If I click the Back button in my browser when on page3.php, will I go back to redirect.php and therefore be sent to page3.php again? Or will I go to page1.php?

View Replies !
Back To Html Page From Php
How do you go back to the html page you came in from from inside a php
script?

View Replies !
Navigation Back To An Html Page
I can't seem to figure out how to navigate back to an html page from a php page.

View Replies !
Exit Link Url Variable
I'm trying to create a custom stats script for my site, I'm new to php and I'm just wondering is there a way to tell what link someone clicked to leave my site?

So if I've got links to section a, section b, section c, google, yahoo, msn and someone clicks on google I can record that.

View Replies !
Objective PHP + Html Frameset
my application looks like this:

(file index.php)

application = new MyApplication();
application->run();

//all code of the application is in MyApplication class and other
classes related to MyApplication class,

there is .../index.php in the address field of my browser there, all the
time application runs (variables handled in session)

all works fine, but without frames, now I want to make it works in html
frameset

how to do it?, all the time I've olny one file index.php in the browser
address field (index.php is autogenerated), but to make it work in
frameset I need file for frameset, and one file for each frame,

how to do it using classes and autogenerated files for frameset?

View Replies !
Redirect To The HTML Page
I have a page which is all PHP processing. It outputs errors via echo.

Since I am using echos for errors, I can not use header("location:http://wwhatever.com") after the code to redirect to the HTML page depending on the success of my operation. The user arrives at this page after clicking a submit button. Form action gets me to the page. The page is all PHP right now.

What is a good way to get around this? I do need the echos in case there are errors - also to keep the user apprised of what is happening in the processing.

View Replies !
Php Location Redirect In A Html Page
I'm having trouble including this php into a html page. I can't rename the file as a .php file it must be in html. Code:

View Replies !
Making "go Back" A Link To The Previous Page
I have this: PHP Code:

$msg = "<p>Please go back and fill in the fields accordingly.</p>
";

and I want to do this, making "go back" a link to the previous page: PHP Code:

$msg = "<p>Please <a href="javascript:history.back()">go back</a> and fill in the fields accordingly.</p>
";

View Replies !
Can You Redirect Every Existing Html Page Through A Php Function?
Is there a way to redirect every single page on an existing web site through
a php function?

In other words, say I have a whole functional HTML web site, never written
to use any php. Now I would like to have a php function handle displaying
every page, for example, instead of:

http://www.mysite.com/mypage.html

you would call:

http://www.mysite.com/dopage.php?p=mypage.html

....and then the php could do some fancier includes at the end of each page,
etc., or add a header, etc.

I don't want to rewrite the whole site and rename all the pages; also, this
site has been around for awhile and there are a lot of links floating around
the internet to direct urls on the site, so I'm wondering if I can intercept
every URL to that site and redirect it to the php function, which will then
open the page.

View Replies !
Create A Frameset PHP Page.
I've tried many different ways.  Nothing works properly.  Well, one way that it works, but the other site cant seem to find the frame name, because it is in PHP.

It works so well in HTML.  Now, I am trying to create one in PHP, so I do not have to create hundreds of HTML pages for each links. There is only one PHP page and it contains the framesets. What is the proper way to code framesets in PHP?

View Replies !
Make It Link To Another Html Page
How to retrive feild from table and make it clickable and link to another html page.

View Replies !
<link:page.html,xxx> => <a Href="page.html?id=xxx">
I want to transform this code <link:page.html,xxx> to

<a href="page.html?id=xxx"> dynamically.

I tried out alot of preg_replace stuff, but I didn't get to manage it.

View Replies !
Regalar Expression To Extract An Html Link From A Page
I have a regalar expression to extract an html link from a page:

href=(["']?)([^>1]*.html)1(?: [^>]*)?>

It looks after the "href" for an optional quote and then looks for something
that is not the quote or the endarrow.

The problematic part is [^>1]*. It should exclude anything with the quote,
but somehow that doesn't work. Maybe 1 is not allowed inside brackets?
I would like some advice on how to handle this.

View Replies !
Way To Ensure/check That A Page Is Actualy Loaded Within A Frameset?
My website uses frames and one should always load the frameset and not only one of the frames. Is there a nice way to ensure/check that a page is actualy loaded within a frameset?

View Replies !
Html Page Link Prints Path 3 Times In Header
I have a website with html pages and a php page (a form). I just put in links on the html pages to the php page. When I click them I go to the php page and as bonus the path of the html page is printed at the top three times. (The text in the php page changes depending on which page I have hit the link from.) For example:

Quote: http://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp

If I highlight and then delete this text in Navigator or Explore both browsers return me to the page written out three times at the top of the page. Here is the code that is giving me this result. Code:

View Replies !
How To Get My Upload File To Automaticaly Post A Link To A Html Web Page
Can some one direct me to a good tutorial that can teach me how to get my upload file to automaticaly post a link to a html web page on a web site.

View Replies !
A Web Development QUICK LINK PAGE (QLP) - HTML, Perl, PHP, JavaScript, AJAX, CGI, Etc.
I've recently organized and even color-coded many of my favorite
bookmarks on WEB DEVELOPMENT (and a few other favorite subjects too)
into what I call QUICK LINK PAGES. These are very condensed, compact
(no graphics), fast-loading pages with a 100+ links to some of my
favorite web sites on a particular subject. I hope you'll give them a
try...

Here's the link...

The easy-to-remember link above gets you to one of the Quick Link Pages
(QLP). The current categories (DIVERSIONS, INVESTING, JAZZ, MACINTOSH,
OPERA, PHYSICS (with ASTRONOMY and MATHEMATICS), SPORTS, WEB
DEVELOPMENT, and WINDOWS) are color-coded on the top of every page.
Just click your favorite category. I hope you'll find a lot to enjoy.
If you find any errors, or have suggestions for additional links or
categories,

View Replies !
How Can I Get A Server To Show Index.php As It Would Index.html?
How can I get a server to show index.php as it would index.html? When I
save index.php it just shows the directory, I'm administrator of an
Apache Server and I'm not of a (I think, it's what www.awardspace.com
uses) a goDaddy server. Can anyone help me with this? Can it be done?

View Replies !
Back Referencing To Get An Array Index?
My website needs to allow users to specify where a thumbnail image will
appear in the text ($articleText) they submit.
The thumbnail filenames are held in a single-dimensional array called
$photos
e.g. the users are to type [thumb4] to specify they want thumbnail four (
from array position 4 )

I was hoping the following expression would work, but it doesn't. The
returned text always includes <img src="thumbs/"> i.e. no image filename is
inserted. (I was expecting something like <img src="thumbs/dave.jpg"> )

$articleText = preg_replace("/[thumb(d+)]/", "<img
src="thumbs/".$photos[$1]."">", $articleText);

View Replies !
Exit() And Page Loading
I am using exit() at the end of an "if" statement that identifies if a variable has or has not been submitted to the page. The problem is that if the variable does "not" exist the exit() stops the script at that point and the rest of the page does not load. If I take out the exit() then the php script continues to run but when the script reaches the point that it need the variable it spit out an error and once again the remainder of the html page does not run. Any ideas on how to fix this problem?

View Replies !
Visitor Exit Page
I am new with php. In order to find out referral link, I need to use http_referer. Can I know how can I track the exit page of the visitors? What's the code?

View Replies !
Recording Exit Page
I have got a page product.php and at the bottom of the page there is a small bit of script which sends me an e-mail when this page is viewed with all the details of the visitor. Is it possible to record the page which they go onto from that page eg: if someone clicks on link1.php from product.php it will tell me that they went from product to link1.php? link1.php would be an external site link which is nothing to do with my site? Is there a variable like: PHP Code:

$_SERVER["HTTP_REFERER"]

View Replies !
Automatically Redirect Back To Somewhere Else I Specify
Im building a site using php includes, and I want to log out, but my log out page is a include, and the includes take place halfway down the page, so it throws the error
cannot modify headers, headers already sent by the template page

so I figure the logout script has to be the first thing on the page, right? but since it doesnt need any input anyway, I figured how about setting that link to go to a whole new invisible page called logout.php, instead of another include.

Ok so that would work, the question is, how do I get that page to then automatically redirect back to somewhere else I specify, after its executed that code? Also ideally Id like to send some vars back with it- like err.. to say whether logout was sucessful or not.

View Replies !
Back Link In Url
i have a page where the user needs to be logged in in order to use it, so if they are not logged in it sends them to the login page. once they login it should send them to the page they were trying to go to. the problem is that the url keeps the login page and just adds the new url at the end. here is the code any ideas? PHP Code:

View Replies !
Back Link In Php?
How do I make a link that takes me to the previous page? I have a list of thumbnails, when I click on one of these a big picture shows. When I click on the big picture I want to go back to the previous page, just like pressing the back button in explorer.

View Replies !
History Back Link
how do I create a history.back link with anchor, say #anchor? is there an easy way to do it with just: javascript:history.back(-2)#anchor or do i have to use php? i'm thinking i have to do something like onclick="<? some php code ?>#anchor" how do i grab browser history to redirect the user back two pages?

View Replies !
Better Back Link In Php Than The Normal Javascript
Does anyone know of a better back link in php than the normal javascript history one, specifically when pulling from mysql and clicking on a result in a list then a back button to go back to that exact list.

View Replies !
Using Preg_match_all To Locate HTML Anchor Link BUT Only If The Link Is A .pdf File
The subject line describes what I'm trying to do, (and after thinking about it for a day or so and trying different things; searching around for similar questions on the board,) but I still haven't found a proper regular expression.

I am trying to use preg_match_all to locate HTML Anchor link BUT only if the link is a .pdf file within text from a database table. It actually was working just fine until I recently made a change regarding new lines () and (<br />) in the text that is to be searched. But after making changes regarding the new lines and things, my previous regexp doesn't work correctly. Here is the regexp I am trying to use:

preg_match_all('/<a href="(.*)">(.*)</a>/U', $entry->Record['e_entry'], $res_output, PREG_PATTERN_ORDER);

That regexp does find each occurance of an <a href="">something here</a> link... but I need it to only find occurances of an anchor link if it is a PDF file link (ex: <a href="../something.pdf">something</a>). So I tried changing the regexp to something like this:

preg_match_all('/<a href="(.*).pdf">(.*)</a>/U', $entry->Record['e_entry'], $res_output, PREG_PATTERN_ORDER);

But in the preg_match_all results array ($res_output) a regular <a href="">something here</a> link is ALSO found as well as the .pdf links... I am trying to only find links that contain .pdf at the end of the file name. Sorry that this is written kind of strangely, if you need more info let me know. Does anyone know what I need to change in the regexp to ONLY find HTML anchor links that contain .pdf at the end of the HREF?

View Replies !
0 Is Not A MySQL Link Index ?
I saw this topic somewhere but cannot remeber where and what the solution was.

View Replies !
Save Values Off When Select Link Back
I have the form values set to value="<? php echo $Name ?>".

I need to allow a person to access a presentation from within this test form if for example they are unsure of an answer they can return back to the presentation.

I need to retain what they have answered on the form b4 they choose to go out to presentation when they come back. If they only use the back button, values are retained but if they reselect to take the test, I loose all.

I need to save values off when they select link back. Can anyone give me an easy way. I guess I could write to D.B. file with save values and read back in but is there a simpler way?

View Replies !
Creating A Folder Index With Link
I'm trying to think of ways to create a folder index for a client.
Basically they want to upload PDF's to a folder and have the PHP
script index the folder for a file list with links to the files to be
displayed in a browser. No navigation to other folders. Just a list
of a specific folder with links to the files. This can be done with
simple html and frames but they do not like the look and want more
formating control. Any thoughts. I've seen some file manager scripts
but that is more function than I need.

View Replies !
Display Problem - Checks Multiple Domains For A Link Back
I have this script which checks multiple domains for a link back to my site:

function backlinkCheck($siteurl, $recip) {
$arrText = @file($siteurl);
for ($i=0; $i<count($arrText); $i++) {
$text = $text . $arrText[$i];
}
if (eregi($recip, $text)) {
return true;
} else {
return false;
}
}

The problem is that It displays true or false only after it went through the whole list.
Id like it to display each site after they are done. Anyone can tell me how to do this?

View Replies !
Page Expired After Going Back From Del. Pageto Form Page Where Comment Is Submitted..
i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add

When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history..

When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says:

Page has expired.

I wondered how to deal with this kind of problems........

View Replies !
Page Has Expired Message In Between The Php Page When I Click Back In Explorer Menu
I have a php script page, which is basically quiz. Visitors (after login in
with their email address) are supposed to answer each question, and when
they click the button at the bottom, the next page will show which problems
they got right or wrong.

Now my visitors, after seeing some problems they got wrong, click Back
button at the Explorer menu, and if they do, they get the below message:
=========================
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button.
========================
Below are the script that I am using. This scripts are after initial login
page, which asks for visitor's email address. I have authorized visitors
already in my MySQL table, and only the visitors whose email address is in
my MySQL table are allowed to login......

View Replies !
Redirect Link
i'm using print '<meta http-equiv="refresh" content="2;URL=http://www.domain.com/admin/page.php">' to send the user back to the form when a field is empty. Is there a way to use javascript:history.go(-1) to send the user back so that all his inputs will still be there.

View Replies !
Index.php Instead Of Index.html
If I use index.php instead of index.html will I lose my meta keywords and description when the google bot appears?

View Replies !
Index.php Vs Index.html
index.php vs index.html Is there any reason for me to have two pages?

If my site is in PHP, is there a situation where the browser won't go to an index.php page?

View Replies !
Check Whether The User Has Clicked On A Link - Undefined Index Error
if (!$_REQUEST['view']) {

I placed that code in one of my files to check whether the user has clicked on a link that is supposed to direct it to view a blog item.  If it is indeed untrue, then it shows a list of blog items, else it shows the blog with the id set by 'view'

For some reason, the code works.  But it gives me this undefined index error nonetheless.

View Replies !
Extremely High Cpu Clock Usage For A Fairly Simple Back-link Check
I use the following code on a classifieds site. It checks for a backlinkevery 5 days up and gives up after 3 tries if it doesn't find a link back to my site.

I run this code in the background using require 'adlinkcheck.php'; to load this script when someone is viewing an ad on the site. Code:

View Replies !
Affiliate Link Redirect
To cloak my affiliate links, I use a program that I input the affiliate link & generates code that I put in a PHP file that I link to & it redirects to the merchant's product page. All I am trying to do is protect my link from thieves and make it look more "normal" for my vistors--not trying to cookie stuff or anything like that. 

My problem is that one of the new merchant programs I am promoting is through clixGalore, and their affiliate links are a bit different from what I am used to. Instead of giving you an affiliate text link something like this: Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved