Zubrag.com
September 25, 2018, 07:23:01 AM *
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]
  Print  
Author Topic: Protecting a form posting to self (takes user back to login)  (Read 4567 times)
Leo
Newbie
*
Posts: 1


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

Hello,

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?

Logged
Pages: [1]
  Print  
 
Jump to:  

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