gettin proper HTTP_REFERER

2013-01-09  Source: Original Site  Category:PHP  Views:0 

Advertisement

need help, eyes too blurry...simple login that if satisfied from db comparison goes to specified page, otherwise bounce back to self display same form with a message at top of the form. basically want to use HTTP_REFERER to determine the error message, if it comes from itself then display anywhere else don't just form. for errror checkin i tried displaying the variable either way, and it is always empty the first time i go to the script no matter where i am coming from, on an unsuccessful try it states itself as the referer and displays message (good) but every time afterwards no matter where i am coming from it still display itself as the referer and shows the message....please help goin nuts on the eas-e stuff....bit of code for ya below:

if($_SERVER['HTTP_REFERER'] != "http://germiphene.com/php/log.php"){
echo $_SERVER['HTTP_REFERER'];
?>
<form action="val.php" method="POST">
-form stuff
<?php
}
else{
echo $_SERVER['HTTP_REFERER'];
echo "Invalid Username/Password...please try again";
?>
<form action="val.php" method="POST">
-form stuff

validation page is fine, here's the address www.germiphene.com/php/log.php should go to www.germiphene.com/productline/IC/menu.html on success and self on failure, Test and test are name/pass...I trust ya, nothin to look at anyhow. just see what happens when you get there from somewhere else or go back after signing in once.

Related articles
  • gettin proper HTTP_REFERER 2013-01-09

    need help, eyes too blurry...simple login that if satisfied from db comparison goes to specified page, otherwise bounce back to self display same form with a message at top of the form. basically want to use HTTP_REFERER to determine the error messag

  • help...... i m not able to isolate the problem 2013-07-14

    i m new to this forum ,..... i own a pc config is : intel pentium 4 1.6 ghz intel 845dwn motherboard sb live audio card nvidia riva tnt 32 mb display card samsung svo411n 40gb hdd asus witer drive samsung rom drive .....et..al OS : win xp prof + sp1

  • Using getenv('HTTP_REFERER') for "safety" 2013-07-09

    I have read that you shouldn't rely on the $HTTP_REFERER variable to verify that previously-validated data came from the proper page... However, if you use the getenv() function to acquire this variable, would it be "bulletproof"? By bulletproof, I m

  • Oracle Logminer Issue : Not getting the proper auditing data 2012-01-01

    I am using Logminer utility on my test database to view the contents from archived logs which I copied from my prod database. I have setup everything, and started trying to view SQL_REDO from v$logmnr_contents. The output looks a bit strange as it ha

  • Proper Usage for Resource Monitors 2012-01-03

    I am trying to figure out how to monitor a server for over utilization. What is the proper way to setup a system so that it would monitor for a threshold issue with cpu running higher than 50%?

  • Setting up a proper dual boot. 2012-01-04

    Just for future reference, (because i screwed it up once) when installing suse on another partition what should be done so that i will get a proper dual boot setup? (some of you probably read my other topic where my windows wont boot) So what should

  • Ubuntu Proper keyboard backlight support available (i.e. no pommed, yay!) 2012-01-07

    If anyone is interested I've finished integrating proper keyboard backlight support into gnome-power-manager (which in turn uses upower to actually control the keyboard backlight) which with any luck will be available in Natty out of the box (https:/

  • Oracle CTXSYS Index not giving proper search results 2012-01-10

    I have a table where one of its field is CLOB. so I have created index on that column of CTXSYS type the command is as follows CREATE INDEX INDX_PAGE_DET ON tblpage_details(PAGE_DETAILS) INDEXTYPE IS CTXSYS.CONTEXT It searches good and gives proper r

  • Ubuntu How can I install vlc with all the proper codecs? 2012-01-11

    How can I install vlc with all the proper codecs?

  • jQuery r3564 committed - Buttons: proper support for radio toggling. 2012-01-11

    Revision: 3564 Author: scott.gonzalez Date: Wed Dec 30 12:14:25 2009 Log: Buttons: proper support for radio toggling. http://code.google.com/p/jquery-ui/source/detail?r=3564 Modified: /branches/dev/ui/jquery.ui.button.js =============================

  • Proper DB design and uses 2012-01-12

    What is proper DB design and use. For example suppose at a company there are three different product lines and each is unque. Would the proper practice be to have one DB for all three products or would it be better to create three seperate DBs? Assum

  • Ubuntu Proper hostname for a webserver 2012-01-14

    What's the proper hostname for a single webserver connected to the outside world? example.com name.example.com And does your choice matter if you use the dns of your're domain name provider? And does your choice matter for internal services?

  • proper unload method 2012-01-14

    I am fairly new to VB. I have a project that has a Main exe. The main uses a few Active X dlls. I have added a few forms to one of the Active X dlls. What is the proper way to unload my forms when the Main program is closed? I tried the standard unlo

  • $HTTP_REFERER from Secure Server? 2012-01-15

    I have a shopping cart that uses paypal for checkout. Once the customer completes payment information, I use a "return link" from paypal to bring 'em back to my site and send email confirmation of order, clean up shopping cart db, etc. Here's the pro

  • jQuery r3461 committed - tooltio: proper option-disabled handling, suppressing tooltip complete... 2012-01-20

    Revision: 3461 Author: joern.zaefferer Date: Mon Nov 16 05:56:15 2009 Log: tooltio: proper option-disabled handling, suppressing tooltip completely for a disabled widget http://code.google.com/p/jquery-ui/source/detail?r=3461 Modified: /branches/dev/

  • Proper way to initialize a Dialog 2012-01-20

    What is the proper way to initialize a dialog in MS Visual C++ 6.0. I have several dialogs in a switch statement. EXAMPLE CODE: switch (l_icount) { case 0: CExample1 l_dExample1; //create a dialog object l_dExample1.DoModal(); break; case 1: CExample

  • Where is the proper place for me to put initialization and cleaning-up code for ATL control? 2012-01-23

    I have a RUN-TIME INVISIBLE ATL control. Now I need to do some initialization and cleaning-up under the run-time and the design-time SEPERATELY. That is to say, I need to find a place where I can use "GetAmbientUserMode()" to decide the current mode

  • strip q= from http_referer 2012-01-24

    I am trying to strip just the keyword from a URL from the referring page What I need is the word after q= Here is the URL http://localhost:8888/search.php?q=beans&t=rp&x=32&y=9 I can get it using this: $query_part=strstr($_SERVER['http_re

  • Forwarding and http_referer 2012-01-28

    Is there a way to forward someone automatically to a url ,. but have that url check the referer contains a certain string. All the forwarding tricks ive used leave $HTTP_REFERER blank. I'd like to forward someone to a page ,. but only allow it from w

  • choosing the proper graphics driver 2012-01-28

    I have problem using some visualization software. Someone suggested that it might be because I don't have a proper graphics driver. lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controlle