What about when they restrict access to certain folders? Does that work the same way?tasairis wrote:There is no way.
HTTP_REFERER won't always be set, and when it is you have no way of knowing that it wasn't faked.
Search found 4 matches
- Tue Jun 09, 2009 11:35 pm
- Forum: PHP - Code
- Topic: How restrict access to specific PHP page?
- Replies: 4
- Views: 280
Re: How restrict access to specific PHP page?
- Tue Jun 09, 2009 11:06 pm
- Forum: PHP - Code
- Topic: How restrict access to specific PHP page?
- Replies: 4
- Views: 280
How restrict access to specific PHP page?
Is there a way to restrict access to a PHP page to only other pages from within the same domain? Is HTTP_REFERER the only way?
- Tue Jun 09, 2009 8:50 am
- Forum: PHP - Code
- Topic: How know if the php page was reached by a posted form?
- Replies: 6
- Views: 199
Re: How know if the php page was reached by a posted form?
Thanks that one works.mikemike wrote:works for meCode: Select all
if(!empty($_POST))
Just out of curiousity, why is _POST better than the previous HTTP_POST_VARS?
- Mon Jun 08, 2009 4:51 pm
- Forum: PHP - Code
- Topic: How know if the php page was reached by a posted form?
- Replies: 6
- Views: 199
How know if the php page was reached by a posted form?
How can i tell if a POST method is what reached the php page? I tried the code below, but it is always true:
Code: Select all
if ( isset( $HTTP_POST_VARS ) )