munk.me.uk forum
May 21, 2012, 05:19:53 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: PHP Code  (Read 2119 times)
inthedark
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile Email
« on: July 31, 2009, 09:32:05 pm »

Hi There

newbie here, firstly great piece of work took me a little while on how to work the mysql to get it to write to the database but got there in the end. What my question is i have now got the php code within my website framework but lets say the person puts in a wrong password or login it goes to error page which is great but i want that within the framework rather than its own page.I thought i had cut the right part of the code but get the message that something has already been sent.Now i dont know a great deal on php either but im sure its just a case of selecting the correct bit of code so that the error part comes within my css page that i have.

Any help would be grateful

Totally in the dark lol

Logged
munk
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 368


View Profile WWW
« Reply #1 on: July 31, 2009, 10:26:07 pm »

Make sure there's no HTML being output to the browser before you redirect the script back to your framework script.  The framework script is probably trying to set some session variables after the simpleauth script has already output something to the browser and so it fails with that error message (just guessing, you don't provide much info on the error message!).

See here:

http://forums.munk.me.uk/index.php/topic,109.0.html

Cheers.
Logged

~ Jez
munk
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 368


View Profile WWW
« Reply #2 on: July 31, 2009, 10:30:48 pm »

test
Logged

~ Jez
inthedark
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile Email
« Reply #3 on: August 01, 2009, 07:39:06 am »

Hi There

Will give that a go later today and get back with how i get on

Many thanks
Logged
inthedark
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile Email
« Reply #4 on: August 01, 2009, 08:14:39 pm »

Tried
Logged
inthedark
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile Email
« Reply #5 on: August 01, 2009, 08:16:24 pm »

tried to work it out but this is the error i get

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/windscr/public_html/members.php:7) in /home/windscr/public_html/config.php on line 84
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!