I have a text field in which I'm supposed to enter the answer for the security question which is needed in case I forgot my password e.g (who is your best childhood friend?).. Now the problem is that when I enter a value in the first time, the second time I find a drop down box which contains my previous value, and of course this is a security breach. So isn't there someway to disable the history of this text field but besides it shouldn't repeat the same action in the future?
Implemented a sendmail in PHP called from a html page with a form.It requires filling some textfields, then pressing the submit button causing the mail to be sent.Now I need this form to be cleared on successful mail transmission.Internet Explorer(or other)saves all field values when moving on to another page.This makes it easy to go back in browser history and resend the mail.What I want is that on a succesful transmission of the mail the form cache(or whatever)is cleared.This must be done in the PHP page called.
Usually the preferences of a browser can be set to memorize visited links for some time. But how can I override this using PHP?
On my site the visitor clicks on a link and the link changes its color. But I'd like to make it happen that the visitor will have this effect ONLY during one session. So, that the next day all will look "nice and fresh" again.
I've googled around but cannot find the answer to this. I like the usability of the visited link looking different to an unvisited link but I'd also like to have my site look good the next day. I think the site would look "stale" or "dirty" if the visited links would reappear in that darker color.
Basically I have 2 pages, '1) Quiz page' and '2) Result page'. Upon submitting the Quiz form, it will generate the result on the result page for the user. However I need to prevent user from clicking on back button or keying in Backspace on the keyboard. I researched the use of 'location.replace()' but have no idea how can I implement it within my form:
I am very beginner with PHP. I have an Apache PHP enabled webserver and want to know from where users are coming from. Understand I want the last surfer's browser visited url. I imagine I can do this with some kind of interraction between 2 scripts : one client side, one server side. The client one send the URL and the server one write it in the right log file. I have no idea of how to do this nor with principle nor with syntax ... Can somebody help with a few lines *working* example?
I have a vb.net program that allows you to access webpages in my localhost.Now, my problem is that, when I try to list records in mysql by using tables, it remembers history and the previous data that you listed will appear like a ghost even if the data you inputted does not correspond to the data that it is showing.
I've got a login include file which appears on every page of my site which when submitted POSTs to the current page, and the include makes the appropriate changes now the user has logged in. The problem is that if the user then clicks 'back' in their browser they get the same page again, so they end up having to click 'back' twice in order to return to the previous page.
This problem occurs in all browsers except firefox. In my website, for ex, the home page will be like this [URL]. After finsihed authentication, I will redirect the page using header function in php to user's prfoile. So after logged in my page wil be like[URL}.. If the user clicked back button, I will check the session in signin.php and again redirect to user's profile page.
It works fine for me in firefox. Other than that all browsers, If I used header redirection, it will not store the page in browser's history. I mean, I am redirecting the user after authentication in signin page. So the signin.php url not stored in browser history. So If I use back button, it will go to previous site what I opened before opening my site.
Visitor lands on 1.php and then goes to 2.php. I want browser to re-request 1.php after vistor's click on "back" link. Currently, it doesn't work. How it can be managed? upd. I can edit 1.php ONLY and cant edit 2.php.
I have created a login page where the user has to input a username and password to login. The username will be put in a session and when the user logs out the session data and session itself gets destroyed. However when I go back in the browser history to the page where I logged in I get the "famous" resend information dialog that asks you to resend the information from the login form. Which means that all the post data gets resend and the user logs in again without having to put in a username and password.
Here is my code: Login.tpl: Code: [Select]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Snitch</title>
using a header to redirect to the login page is not going to work since I use my view_manager to display the pages. Does anyone know of any solution to get rid of that stupid resend information dialog without using a header? I tryed unsetting the values of POST in my login code but that did not seem to work. Is there anyone who knows how to remove the POST data from a form when the user goes back in browser history? If it's not possible, is there any solution except using a header?
to provide a back to previous page link. It works fine on Windows (IE/Mozilla) but fails in Safari on both Windows/Mac. Is there a way to make it work on all of the systems/browsers (cross-browser/platform)? If it's not possible, is there any other way using PHP etc?
I have a script which allows a visitor to the web site to upload an image. Since this replaces an earlier image, it gets given the same name (desirably). The upload, and the renaming happen OK. But when all is committed to the database and the visitor is shown the result, the old image is still visible. Clearing the browser cache and refreshing the screen (manually) shows the new image.
Is there a way I can get PHP (or JS, I suppose) to do this automatically as part of the script ?
We are having a project with intensive static resource to make the page load faster we have used browser caching a lot. Now the problem we face is every time we update a static content css or js. The user complains of some issues. I understand that user can clear cache manually and get the right stuff. But cannot it be possible that when a update file goes. It loads a new version of itself we are using php with wamp.
I'm developing a PHP-MySQL app that enables registered users to enter text comments. Problem is:
User sign-in into the web site - OKAY User presented with a form to submit text comment - OKAY User enters text comment and submits - OKAY
I have a routine that sanitize the comment & save it into MySQL (with userid, textcomment, datetime stamp) & present back the user that his/her comment is entered - OKAY
User decides to refresh browser - a duplicate comment is entered - BAD!
I was thinking 3 options: OPTION 1: Routine that checks: last time user posted comment, and if so, check if this is a duplicate. If duplicate then display error message. OPTION 2: Routine that does not allow a user to post too quickly. So basically do not allow postings of comments within 1 minute or so. So if browser is refreshed the comment will be ignored. OPTION 3: Manipulate the browser cache to clear out its contents so when refreshed no duplicate will be entered.
Now in the context of my application, my concerns with OPTION 1 and OPTION 2 is performance PHP-MySQL since I already have various queries within the same page that push/get data from databases. So OPTION 3 may target the issue differently. Questions is: If I go for OPTION 3 can this be considered a Best Practice?
Let a user using Mozilla browser, On three tabs he login to his yahoo account ,gmail and hotmail. Now if we Clear Recent History, all three session will be cleared. But at the same time if there is another session in any another browser it will not be cleared.
So What i am trying to ask here is , the cookies and session related details ,browser cache will be in the local computer and it will be cleared on clearing history. But is it browser specific? The cookie and all will have any browser specific id , how it will differentiate that now clear the IE history or clear chrome history.
what is the easiest way of doing this?i have a page called 1.php which then has links to either pages called.
3.php 4.php 5.php
problem is on these pages it has a script thats checks if the user is logged in! if they are not they are directed to login.php BUT now when they click sumbit i want them to be taken to the page they orginally selected ie 3,4 or 5 .php .
Is it possible with PHP to create log history of what record a user viewed? For example, say I have a database with products in it And a user logs into the site to view those products, is it possible to store what products that user checked out and when?
I have a small website for displaying my pictures to the world ( www.pictures-of-paradise.com ), and have just added 'prev' and 'next' buttons to the 'display' page. You get to the display page from the 'categories_grab' page where all the images in the category that has been chosen are displayed as thumbnails.