Redirection Back To The Page Before You Log In When You Log In.
how to do redirection back to the page before you log in when you log in.
View Complete Forum Thread with Replies
Related Forum Messages:
Page Redirection - Allow The User To Click A Button That Sent Them To A New Page
I am writing a little section of a home made shopping basket. I collect information and put it in the basket / db. However, I want to update into a new database the final order as and when I click a button that directs the usuer to Pay Pal. My thought was to allow the user to click a button that sent them to a new page that updates the final order database and then redirects to PayPal the information required for billing without the user having to press another button. Would this be a sensible wat to go about it.
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 !
Regarding Page Redirection
I have a form which when updated takes the user to an update screen. I was wondering if it was possible to redirect the user back to the screen where they entered the information and refresh the data basically just refreshing the page (and obviously updating the data in the database which is working fine). I have tried using some code and I can easily redirect back to the right page but I also need to have the 'id' selected so that it displays the recently updated record. Below is the code I attempted to use (i have tried everything I can think of). header('Location: OrganiseIDASX.php?id=echo $_GET[$id]');
View Replies !
Page Redirection
I'm building a site that has a notes/blog on it. I have the blog set up so that there will only be a certain number of posts per page. The posts are submitted via a simple form. I'm trying to figure out how to redirect the browser to the page that the post will show up on after it is submitted. Right now it just goes back to page one even though you're making a post that will display on page two, for example. I have this line in my code: header("Location: index.php?page=notes");I'm thinking that I need to set up some kind of variable to pass the page info to so that it goes back to the corresponding page after the post is submitted. Something like this: header("Location: index.php?page=notes&pagenumber=some variable");How would I set this up?
View Replies !
Redirection To Another Page
I'm interested in doing something like what follows in PHP. php. By default, it shows them an HTML page without leaving page.php. However, if the user enters page.php?id=1 , then it will redirect them to another page, such as http://www.google.com. ID 2 would be different and so on and so forth. Could you do this with a switch or something?
View Replies !
Redirection To Previous Page
I'm trying to make a script that would upon execution would redirect current page to previous page. I'm integrating a user comment system for my website and when I do no specify "After inserting, go to page" it reloads current page but user comment is not visible, so I decided after adding a comment to send user to say redirect.php page, what would instantly send user back to submition page to see it's comment. I cannot seem to find a suitable script to do this. Or maybe there is some other way to reload current page and for the comment to appear just after submition? Because I do not want people to reload page manualy to see their comments, in which case it would sumbit the comment twice.
View Replies !
Entrance Page Cookie/redirection
I'm trying to find a way to allow visitors to my website who have already seen my entrance page to skip that and go directly to the main page. I'm not sure how to do this, or what my options are, but I think it's possible to do this with php and setting up a cookie. I found some code online for this task, but it didn't seem to work (I made sure to enable all cookies in my browser). It seems to generate the cookie because I can see the cookie file on my computer, but it still doesn't skip the entrance page like it's supposed to. Code:
View Replies !
Login Script W/ Page Redirection
I am in need of help in forming a script that will log users in securely and redirect each user to a user-specific page if login is successful. For example - login: user1 would be redirected to http://www.mydomain.com/users1.php or user1.html I understand setting up the table with 3 variables - username / password / destinationpage. But how do I get it to redirect after the login? Can someone provide the script fo rme to edit or point me in the right direction?
View Replies !
Page Redirection - Submit Button
file name: index.php echo "<form action='swversion.php' METHOD=POST>"; echo "<input type=hidden name='action'value='swlist'>"; echo "<INPUT TYPE=HIDDEN NAME='entry' VALUE='.'> "; echo "<input type='submit' value='List Software' class = 'formstyle'>"; echo "</form>"; I wanted to add something to this little form code; How do i redirect this index.php, once I click on the submit button it will take to me swversion.php as you could see that my action is doin that. I want that to happen after 5 secs or right away. As soon as hit the button, I want to that page to go back to this index.php again.
View Replies !
Login Script Redirection To A Other Page
I am new to programming and have been given the task of creating 3 login area's on our site that will allow multiple users to login, but to only one of the 3 area's using 1 login box. It is apparently some sort of redirection that needs to occur but I cannot figure it out. I have spent 3 days looking all over the internet for any information to help, but anything I found was a dead end.
View Replies !
Page Redirection - Warning: Cannot Modify Header Information Headers Already Sent
Warning: cannot modify header information headers already sent( at start of D:search.php: 108) in d:search_play.php on line 242.i suggest a way I redirect or be automatically sent to a nother page without using header()? HTML Code: //search.php is the html form <form action="<php echo $SERVER['PHP_SELF'];?>" method = "post"> <!--line 108--> PHP Code: <? //search_play.php process and display results header("Location:../user_info.php"); //line 242 ?>
View Replies !
Log In Page That Goes Back To REFERRING Page
I am using the following code to initialise a session, depending on whether-or-not the users' log in attempt has been successful. if ($session_ok == "TRUE") { //open the session session_start(); //assign user details to session $_SESSION[txt_user] = $user_id; $_SESSION[user_pass] = $user_pass; $_SESSION[ses_state] = "TRUE"; header("Location: ../index.php"); } as you can see the script then refers back to my index.php page, after the session is ok'd. What I would like to do is change this so that is goes back to the referring page, instead of the index.php page, which requires the user to then navigate to their previous page again. I have attempted to use $HTTP_REFERER, although for me (on IE6) for some reason their is no value in the variable!
View Replies !
I Want The Page To Go Back To My Login Page.
I want to logoff my application and I have set up a link to do this. I got it to destroy my session, but I can't get the page to go to the top of the browser and do a page refresh. Here is the code I am using. First there is the link I am using. printf("<a href="%s?logoff=%s">%s</a><br>", $_SERVER['PHP_SELF'],"logoff", "LOGOFF"); Here is piece I use right at the top of the script to destroy the session and try to refresh the page. if (isset($_REQUEST['logoff'])){ session_destroy(); $_SERVER['PHP_SELF']; } What do I have to do to get the refresh to work?
View Replies !
'Back' Page After Logout
I'm using HTTP authentication as my login mechanism, and I'm having problems with the logout. It appears to work (as in I get the right message when I've logged out) but pressing the 'Back' button gives me the information on the previous page as though I hadn't logged out at all. 1) Does $PHP_AUTH_USER not get cleared when a "401 Unauthorized" is encountered? 2) Is there any way to force the logout to apply to previous pages (I'm thinking using sessions or cookies perhaps), or do I have to get the user to close the browser window?
View Replies !
Back To Previous Page?
is it a way that we can have "go back" to our previous page? cos normally when we use back command in our IE or NS. we should have this error message appeared Warning: Page has Expired blah blah blah.. so how should I program so that i can "go back" e.g: i got two php, fromhere.php and cominghere.php is there anyway that i can do in order to reach the page "fromhere.php"?
View Replies !
Going Back To A POSTED Page
how can i stop the browser from warning the user that "Post Data" will be resubmitted... For example, on goolge you do a search, then click on a link, then clikc the BACK button in your browser, it dosn't give you the warning that you are going back to a page with posted variables?
View Replies !
Posting Back To The Same Page
I have a website that uses user authentication. The login does a post back to itself to check set usernames and passwords. <?php echo $_SERVER['PHP_SELF']?> sample url: .../admin/login/index.php This is working on a linux box where the end of the php code sends the page off to a ccc.php page for access checking. So after logging in on the index.php page, you eventually get returned to admin/ccc.php. I reused the same code on a windows box and the .../admin/login/index.php takes me to .../admin/login/index.php/admin/login/index.php does anyone have a clue as to what might cause this?
View Replies !
Does 'Back' Reload The Page?
I notice that when I click the 'Back' button my previous script runs, i.e, all the php code runs (I previously thought that maybe the previous form displays without the code re-running). However, I do not get the expected value displayed on my form. After populating one element in formA with ཌྷ' (just any number) and submitting to formB (using POST ---> Redirect --> GET to avoid the 'expired from cache' message) I then click the 'Back' button and the 17 does not appear. In the code below, after clickng 'Back', I see as output from the echo statement that rb_value[0] is, infact, ཌྷ' but within the form, the text element named rb_value[0] displays as empty. Does anyone have suggestions why this might be? It might have to do with that I do not understand what the 'back' button does. Or maybe with my PRG (post - redirect - get) model. Here is part of the code: echo "rb_value[0]=".$rb_value[0]; //After clicking 'Back' I see that rb_value[0] is 17 if (isset($rb_value[0])) { $rb_val = $rb_value[0]; } else { $rb_val = 1; } $line.= "<td width="20%" valign="center" align="left"> "; // This element displays as empty instead of the expected 17 $line.= "<input type=text name="rb_value[0]" value="$rb_val" size="25" maxlength=25 </center> " $line.= "</td> ";
View Replies !
Go Back To The Previous Page
is there any simple way of knowing which page within the site the user came from? Since after the user do something such as logging in and i want to be able to redirect the user back to the page from which he/she came from.
View Replies !
Back To Last Page Viewed
i was wondering if php is capable of doing the following and if so was hoping i could get some help doing it. i have a wordpress blog and change the content of the sidebar depending if the page being viewed is part of the blog (home, archive, search, or single post) or an actual seperate page (like the about, disclaimer etc). what i'd like is to have a link on the sidebar when viewing a page that says "back to blog" thats acts as a back button like in a browser, going back to the last page viewed. except what i want is for it to go back to any page that isnt a page, so basically the last blog page. um, does that make sense?
View Replies !
Page If Back Button
I have a php page which is a sign up page, once signup is finished the user is redirected to a new page. Sometimes (and it's rare) the user hit's the back button and then re-submits the form etc. I mean like I said it's rare but still bothers me, so on the last page I kill all the sessions. Which only works if the user hits the back button but the page is refreshed. So basically I want to know if it's possible that when the back button is hit to refresh a php page?
View Replies !
Ob_start() And Going Back To The Previous Page
1. How do I go back to the previous page using PHP? For example, I have a log-in process which validates username and password of members, and also retricts access to certain pages. So if a member goes into a page without logging in, the member will be presented with a form to log in. How can I make my script go back to the previous page they were trying to access prior to logging in? 2. What would happen if I use ob_start and ob_end_flush() on every page that I have? Would it affect loading time? Or would loading time be the same except that it would cache everything first? Isn't that suppose to make it appear that the page loads fast?
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 !
Back Button, Page Expired, GET And POST
I have read you can solve the back button problem with the page expiration by using GET method instead of POST. When I use the GET method with form data, it doesn't work. I have a page with a dropdown submitting to a page getting the variable via POST. Then it links to another page, and I want them to be able to come back to the second page. When I use GET instead of POST I get an error.
View Replies !
Refresh Page After Hitting Back Button
I have a page with Dropdowns that are linked to a database. After selecting one of the options and going to the next page, it will display the results of that dropdown item as pulled from the database. If a user hits the back button, then selects a different option and hits "submit", what is listed is the results of the first selection AND the results of the second selection. Is there a way to either: 1. Refresh the page upon hitting the back button on the browser 2. upon hitting the back button, the browser forgets the selection previouslly made.
View Replies !
Writing Pdf Docs And Going Back To The Previous Page
im trying to write a pdf document which contains two columns of data. when the column on the left crosses over to the next page i need to be able to go back afterwards to the previous page to write the content for the right column. currently im trying to do this with fpdf but it doesnt seem to allow me to go back to the previous page once i have finished writing content for one column that crosses over.
View Replies !
Page Has Expired, BACK-button -problem
I have Windows XP&IE6.0.2... (SP1). I'm coding one project with PHP. I get "Warning: Page has Expired" when I try to get back to the "POSTed page" (page whither moved from FORM-page). Better explanation: - Pages are: * Page A: Front-page * Page B: Page where is www-FORM #1.) From Page "A" I move to the page "B" by clicking link on page "A" and I fill the form's fields #2.) Then I click SUBMIT-button and I moved back to the page "A" #3.) I move to the page "B" by clicking link on page "A" #4.) I click "BACK"-button from browser #5.) I got "Warning: Page has Expired" I want that when I click BACK, I will be moved to the page "A" straightly without warning (of course then post-data can't get re-sent) Got any idea how in PHP I can prevent this warning?
View Replies !
Echo A Page Which Resubmits Itself Back To Same Script
I am trying to upgrade my mailer script so that rather then the user having to select a table of emails from our mailing database for every 500 recipients the script will just select a single table and then loop through every 500, echo an html page containing Javascript which then resubmits the data back to the script. Currently we do this, Create email -> Select a mail table -> Submit form and script runs off 500 or less emails -> Press Back on browser -> Select a new table -> Submit form and script runs off another 500 or less emails. What I would like to do is this, Create email -> Submit form and script loops through first 500 emails and sends -> Echo's a page with a countdown timer which resubmits the data including the last row number of the table -> Script then picks up from the last row (501) and sends another 500 emails -> Echos the countdown timer again if need be and so on until the mail is finished. My script will get all the way to the echo of the countdown page but when the javascript finishes, the script doesn't actually submit, or at least does not appear too. I am wondering if this is because the script that echo's the page (automailer.php) cannot be the same script the form is meant to submit too?
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 !
Redirects The User Back To The View Page
i am facing a strange problem of redirection. After the user fills up the form, i submit the data to save.php file and at the end i have a header which redirects the user back to the view page.Below is the code of save.php: Code:
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 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 !
Back Button To Previous Multi Purpose Page
the index page passes paramiters tot he view page to telling it what to view. then the user can go to the delete page to delete on of the items viewed. from the delete page I want to the user to go back to the viewpage using the same paremiters. Is there a simple way to just do a back link or do i need to pass the paremiters to the delete page then back again?
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 !
Clicking Browser's Back Button Shows An Empty Page
On my website www.lahabitacionroja.com developed using Php I am experiencing the following problem: When a user with MS Explorer 5.0 or older clicks the back button on the browser it shows an empty page... If you try with MS Explorer 6.0 this problem doesn't happen. Does anybody why it happens and if there is any easy solution?? Is it a browser issue, an Apache issue....
View Replies !
Log Out - Page Expired Not Working Or Pressing Browser Back Button
I am a problem with I logout from my site. When I push log out link I send it to a new page with this script in this: <?php session_start(); session_unregister($SESSION); session_destroy(); unset($SESSION);?> In each page I have this other script #accesscontrol.php <? session_start(); if (session_is_registered("SESSION")!= FALSE ) # ya la sesion existe entonces la cargo { #Maybe I use after. } else {echo "<h1>Sorry...</h1>"; echo "<A href = "index.php"><H4> Login Univernet</H4> </A>"; session_destroy(); exit;}?> The problem is when I log out and press the back button I am back to the pages. Sometimes it tells me that page expired but if I reload the page everything is ok and all my "security" pages are available.
View Replies !
|