July 04, 2020, 03:54:51 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Protecting a form posting to self (takes user back to login)  (Read 5879 times)
Posts: 1

« on: February 07, 2013, 01:57:18 AM »


And thanks for an awesome script.

I recently had a problem with adding protection to a simple page with form that posts to self.

1. Original form worked smoothly
2. Adding password protection to it was a success (at least almost, because:)
3. when the form is submitted: instead of processing the form, the logged in user is taken back to login prompt.

What would be the way to fix this?

(if it's any help, the protected form is processed like this)
<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >

Any thoughts?

Pages: [1]
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC