Re: [PHP] previous page

2004-06-09 Thread cab
Larry, Thanks all makes sense, but, if I add this: ?php echo($_SERVER['HTTP_REFERRER']); ? I don't get anything back when the page is called? Cab Larry E . Ullman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a .php page I don't want anyone being able to just open it

Re: [PHP] previous page

2004-06-09 Thread Larry E . Ullman
Thanks all makes sense, but, if I add this: ?php echo($_SERVER['HTTP_REFERRER']); ? I don't get anything back when the page is called? Yes, that can happen, which is why I said it wasn't perfect. I think using some sort of form to go through is the better option. Larry -- PHP General Mailing

Re: [PHP] previous page

2004-06-09 Thread Daniel Clark
Then you could set a hidden form variable INPUT TYPE=hidden NAME=xxx VALUE=etc or set a sesssion variable on the previous page. Larry, Thanks all makes sense, but, if I add this: ?php echo($_SERVER['HTTP_REFERRER']); ? I don't get anything back when the page is called? Cab Larry E . Ullman

Re: [PHP] previous page

2004-06-09 Thread Steve Douville
Try: $_SERVER['HTTP_REFERER'] You misspelled it... - Original Message - From: Larry E. Ullman [EMAIL PROTECTED] To: cab [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 8:46 AM Subject: Re: [PHP] previous page Thanks all makes sense, but, if I add this: ?php

Re: [PHP] previous page

2004-06-09 Thread cab
Was ready after searching www.google.com and yes your right about the incorrect spelling of the variable. I also found that some firewalls block the information. So, I now have to go back to the drawing board and build the form. Easy if it was as simple as a form and a submit button but this

Re: [PHP] previous page

2004-06-09 Thread Fred
Larry E . Ullman wrote: Thanks all makes sense, but, if I add this: ?php echo($_SERVER['HTTP_REFERRER']); ? I don't get anything back when the page is called? Yes, that can happen, which is why I said it wasn't perfect. I think using some sort of form to go through is the better option. Larry

[PHP] previous page

2004-06-08 Thread cab
Hi People, Just need a bit of direction to a resource or tutorial on this one please. I have a .php page I don't want anyone being able to just open it unless they've been through a previous page that is a disclaimer http referrer etc come to mind but not exactly sure how to implement it in PHP.

Re: [PHP] previous page

2004-06-08 Thread Larry E . Ullman
I have a .php page I don't want anyone being able to just open it unless they've been through a previous page that is a disclaimer http referrer etc come to mind but not exactly sure how to implement it in PHP. Yes, you could check the value of $_SERVER['HTTP_REFERRER'] but that's not perfect.