www.webdeveloper.com
Results 1 to 3 of 3

Thread: if Statements not working???

  1. #1
    Join Date
    Jan 2003
    Posts
    72

    if Statements not working???

    i dont know why the hell the following dont work?

    if ($details[2] eq "down") {
    if ($refferer =~ m"$corehost[0]" || $refferer =~ m"$corehost[1]") { &download; }
    }


    for some reason when i have the if statements alone they work fine but when there together like this it acts as if its false, when it actually should return true??

    ALSO: i have executed the script through the meta refresh tag. does this effect the refferer in any way?


    Thanks
    Goran
    Last edited by druss; 01-23-2003 at 10:03 PM.

  2. #2
    Join Date
    Dec 2002
    Location
    Pleasanton, CA
    Posts
    2,132

    Smile

    Worked for me..

    if ($refferer =~ m"$corehost[0]" || $refferer =~ m"$corehost[1]") { print "true\n"; } else { print "false\n"; }

    Remember it's case sensitive!!

  3. #3
    Join Date
    Jan 2003
    Posts
    72
    i figured out the problem!

    it seems that when i have this tag -
    <META HTTP-EQUIV=Refresh CONTENT="0; URL=$leech_url?$name&$file&down">
    - no refferer shows up, ive tried to print it but its just blank?? why dosent it show where its coming from, also is there another way to automatically redirect cause javascript dont have refferer niether?

    Thanks
    Goran

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles