TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-06-2009, 12:57 PM   #1 (permalink)
The Visitor
 
Farmer's Avatar
 
Join Date: Dec 2008
Posts: 4
Thanks: 0
Farmer is on a distinguished road
Help PHP form submission

I am having quite a problem when it comes to forms. well i have 3 files.

- login.php
- checklogin.php
- logoout.php

i am not using any session or cookie rite now. I am able to login [login.php -> checklogin.php -> logout.php] but when i press the back button of the browser from logout -> checklogin. It wants me to re-submit the information, which i don't want to.



Is there any way to just show the checklogin file so that i can tell the user the form has not been submitted?
Farmer is offline  
Reply With Quote
Old 03-06-2009, 02:26 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

It is because checklogin.php is a POST request. If you forward the user to a GET page after they have successfully logged in then you will not have this issue. Any POST page that you navigate back to will display this message, however.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
10 PHP Myths Dispelled Wildhoney General 9 06-15-2009 06:55 AM
Basic php form update mysql script dp2 Absolute Beginners 3 03-11-2009 04:06 PM
PHP fill in form help sacred_tinker Absolute Beginners 6 10-08-2008 12:28 PM
email fill in form help? PHP sacred_tinker Absolute Beginners 19 05-28-2008 05:58 AM
PHP Contact Form - 2 Questions ncmason General 0 05-26-2008 02:38 AM


All times are GMT. The time now is 09:27 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design