[PHP] Passing page referrer on as variable

2003-05-31 Thread Mallen Baker
I have a login process for an intranet that aims to allow all people to view the 
intranet front page, but as soon as they click on a link, they are taken to a login 
page. Once they have logged in (authentication via sessions, drawing from info held in 
a mysql database) they can then go wherever they want.

What I am trying to get is that when they click on a link and login, the process then 
forwards them on to the page whose link they clicked on, rather than presenting them 
back with the home page.

Basically, every page calls a function that checks whether the person is logged in, 
and if not redirects them to the login page. The login page register the $http_referer 
as a variable on the form - and when the form is submitted (ie. login takes place) 
that variable is passed on, and used for a location: instruction on success.

The real kicker is that this worked fine when I developed it - using IE5 on my Mac 
(and still does). Only after a short while did I discover and realise that it wasn't 
working at all on IE5.5 / 6 on Windows. But surely these are server side operations, 
and if it works for one it should work for others?

The only thing I can think of is that IE5.5 on Windows doesn't pass on the referer 
info in the same way?? In which case, is there an alternative way of capturing this 
that would withstand the differences?

Thanks - Mallen



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with sessions expiring?

2003-03-14 Thread Mallen Baker
Hi

I have a process for people to apply for awards online. The login is controlled using 
sessions, with a basic session variable set with the username of the person logged in. 
In PHP ini the session cookie lifetime is set to 0 - ie. until the browser session 
finishes.

Manyof the applicants are using the system, and it is fine.

But a significant minority are having the same problem. They log in, spend some time 
entering data into the fields on the form, and when the hit the button to either save 
or submit the entry they get a 'you are not logged in' message and - worse - lose the 
data they have so far inputted. One user experienced this after an hour and a half's 
work - but others have had problems after considerably shorter periods of time.

As far as I can tell, the problem is not restricted to one platform, and I haven't yet 
been able to locate anything that applies to them that wouldn't apply to others who 
have successfully used the system.

Is there any known problem - perhaps in relation to certain kinds of firewall - that 
would explain this behaviour? Any thoughts on the workaround I might do short term 
(above and beyond encouraging people to write their applications in Word before 
submitting them) that might alleviate the problem?

Deadline for the award is two weeks and traffic is getting quite high. Any help you 
can give me before it gets worse would be gratefully received!

Thanks - Mallen



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: arguments against php / mysql?

2002-04-11 Thread Mallen Baker

Sorry - I'm being clear as mud! We have an existing site which will need to live on 
the server - I'm looking at new development. The two don't need to work on the same 
thing - there's no question of recoding that site as coldfusion.

- M

 Rasmus Lerdorf [EMAIL PROTECTED] 04/11/02 08:37am 
But there is really no point in switching from ASP to CF.  What are you
hoping to gain?  Going from one dead-end proprietary system to another
which both try to lock you into their technologies seems pointless to me.
Is ASP not working?  Why not just stick with that?

Why not get a low-cost Linux server as well and slowly start migrating
things?

-Rasmus



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk 




This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] copying and pasting bullets from Word to php/mysql

2002-03-22 Thread Mallen Baker

Hi - this is my first shift from happy and constructive lurking to a question. 

I am putting together a php/mysql set-up for jobs pages for a not-for-profit 
organisation. To make it easy for the hr manager, I want the form that enters the job 
details into the database to be able to have content copied and pasted into it from 
word documents.

Using nl2br() is fine, but my big problem is bullet points. Many of the job specs use 
bullet points, and although I can replace the non-standard bullet character with a 
li I can't work out how to put in a piece of code that will put in the other tags 
to make it legal code. Getting a ul in front of the very first bullet is easy 
enough, but not getting /ul at the end, nor indeed spotting if there are two 
separate bullet lists and adapting the code accordingly.

Any thoughts? - 

Many thanks - Mallen



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php