darkfreaks Posted February 16, 2010 Share Posted February 16, 2010 so my isset statement is returning false any ideas i did something like if(isset($variable)){ //process form } now it processes the form so i get "this user has been suspended" and "this user has been deleted" but now it is not matching "this user is dead" which worked before i put that isset() in. Quote Link to comment https://forums.phpfreaks.com/topic/192282-isset-returning-false/ Share on other sites More sharing options...
premiso Posted February 16, 2010 Share Posted February 16, 2010 Has the variable you are checking been set? From the if statement not working, I bet not. You need to provide more code to get a more exact answer. Quote Link to comment https://forums.phpfreaks.com/topic/192282-isset-returning-false/#findComment-1013289 Share on other sites More sharing options...
darkfreaks Posted February 16, 2010 Author Share Posted February 16, 2010 code is like 600 lines long but okay if($submit){ $url = 'http://vampirefreaks.com/profile.php?user='; $user = $_POST['user']; $file = file("$url$user"); foreach ($file as $lines) { $line = strip_tags($lines); $line = trim("$line"); if ($line != '') { $line = preg_replace('/\s+/', ' ', $line); $line = preg_replace('/\s+$/', ' ', $line); $reason = 'THIS USER HAS BEEN DELETED BY VF ADMIN Reason for Deletion:'; if ($line == 'THIS USER DOES NOT EXIST' || $line == 'Error Retreiving user info') { $message = "this user is dead<br />"; } if ($line == $reason) { $message = "$line $user"; } if ($line == ''.$reason.' Picture Theft') { $message = "$line $user"; } if ($line == ''.$reason.' pervert') { $message = "$line $user"; } if ($line == ''.$reason.' Nudity. You left out the word "demented looking" from your username btw.') { $message = "$line $user"; } if ($line == ''.$reason.' Nudity') { $message = "$line $user"; } if ($line == ''.$reason.' Previously deleted pervert.') { $message = "$line $user"; } if ($line == ''.$reason.' inappropriate images') { $message = "$line $user"; } if ($line == ''.$reason.' Previously Deleted Pervert') { $message = "$line $user"; } if ($line == ''.$reason.' Spamming') { $message = "$line $user"; } if ($line == ''.$reason.' prev. deleted pedo') { $message = "$line $user"; } if ($line == ''.$reason.' This Is Not A Sex Site.') { $message = "$line $user"; } if ($line == ''.$reason.' Spam') { $message = "$line $user"; } if ($line == ''.$reason.' Picture Theft') { $message = "$line $user"; } if ($line == ''.$reason.' -AyKayTay Again -.-') { $message = "$line $user"; } if ($line == ''.$reason.' Nudity.') { $message = "$line $user"; } if ($line == ''.$reason.' I call bullshit, you stuffed socks in there.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Brookelle.') { $message = "$line $user"; } if ($line == ''.$reason.' Hardcore Pedophile') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Hannie Dropkick.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Katie Babyfayce.') { $message = "$line $user"; } if ($line == ''.$reason.' Sending nudes to minors.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of FMJ_4912 @ VF.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of rusty_coconut @ VF.') { $message = "$line $user"; } if ($line == ''.$reason.' Image theft.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Avril Lavigne.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Julie Elizabeth.') { $message = "$line $user"; } if ($line == ''.$reason.' Multiple account.') { $message = "$line $user"; } if ($line == ''.$reason.' Spam account.') { $message = "$line $user"; } if ($line == ''.$reason.' fetus has a bigger penis then that.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Alex Evans.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Daniel.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Max.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kat Dromer.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Andres Gorgeous.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Casey Gomez.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Marta Ryden.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of DiamondSky @ vf.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of AmberOnFire @ vf.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Soulja Boy.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Tanyahahaha.') { $message = "$line $user"; } if ($line == ''.$reason.' http://vampirefreaks.com/playvideo/?v=122881') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Lesley Lock.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of YoYo Suicide.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Joy Crusifiction.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Aurora.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Billy Babydoll.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Jac Vanek.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kitty Krunk.') { $message = "$line $user"; } if ($line == ''.$reason.' Spamming girls, offering premium for webcam shows. Pathetic fucker.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Becca Louise.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Linda Cooper.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Nancy Santos.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Aoi.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Betty.') { $message = "$line $user"; } if ($line == 'T'.$reason.' Identity theft.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Randy Romance.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Alex McKee.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Brandon Killen.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Corey Pattakos.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Tyler Christian Thompson.') { $message = "$line $user"; } if ($line == ''.$reason.' Multiple image theft.') { $message = "$line $user"; } if ($line == ''.$reason.' Previously deleted fake.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Gerardo Andres.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Miss Ally.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Stephanie Cooper.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Sam Llansing.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Taryn.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Taylor Parks.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Troy Lee.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Matt Rouge.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Marti Rubels.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Katie Babyfayce') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Klayton[Celldweller].') { $message = "$line $user"; } if ($line == ''.$reason.' Fake, pick a better Canadian next time.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Anna.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Brookelle.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Dani Gore.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Ville Valo.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Lara Jade.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kevin Muenkel.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kyler Krunk.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Melody.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Max.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Sam Llansing.') { $message = "$line $user"; } if ($line == ''.$reason.' Image theft.') { $message = "$line $user"; } if ($line == ''.$reason.' Failure to provide a salute.') { $message = "$line $user"; } if ($line == ''.$reason.': Fake of Sami Syke.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Danny Leon.') { $message = "$line $user"; } } if ($line == ''.$reason.' Fake of Alex Evans, Randy Romance, and Niko December.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of clinical_waste.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Dolly Christ.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Alex Evans, and Ross Fretten.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Christine Dolce.') { $message = "$line $user"; } if ($line == ''.$reason.' underaged user(12)') { $message = "$line $user"; } if ($line == ''.$reason.': Fake of Angella Guzman Carrero.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Erin Rae.') { $message = "$line $user"; } if ($line == ''.$reason.' Failure to provide a proper salute.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Brianna Keller.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Squeek.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Emily McCulloch.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Martin.') { $message = "$line $user"; } if ($line == ''.$reason.' Identity theft.') { $message = "$line $user"; } if ($line == ''.$reason.': Fake of Matthew Lush.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Rizzi Stardust.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Emma Randolf.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of TwiggX.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Jaime XTC.') { $message = "$line $user"; } if ($line == ''.$reason.' Rudy Muerte.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Megan Vanmale.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Funerella.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Guin Davis.') { $message = "$line $user"; } if ($line == ''.$reason.' Spamming.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Andi Six.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Sammy Slitwrist.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Intention & Bryce Alexander.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Colton.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Carl G.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Devin Coffin.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Ditte, Amanda Shell, Megan Hollywood and Jenn Curbstomp.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Emilia Villanueva.') { $message = "$line $user"; } if ($line == ''.$reason.': Fake of Valic Valentine.') { $message = "$line $user"; } if ($line == ''.$reason.' That picture is not you no matter how many times you remake your account.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Oirret.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kiki Kannibal/multiple accounts.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Alex.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Ashleigh Louise.') { $message = "$line $user"; } if ($line == ''.$reason.': Fake of Krystal Meth.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Chantalle Lovery.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Ashley Devinne.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Carrie Cannibal.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of hottpinkjellybean @ VF.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Miss Jewel.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Video Kidd.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Drewy Boy.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Jill Legolas.') { $message = "$line $user"; } if ($line == ''.$reason.'Fake of Tila Tequila.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Dansemacabre @ VF') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Troy Lee.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Jesse Dorran.') { $message = "$line $user"; } if ($line == ''.$reason.' Loser making his own fake account LOL') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of George Boleyn.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kipi.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Xander Martin.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Laura "Morticia" Marie') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Dale.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Zac Efron.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Ryan McCubbins [deceased]') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Elise "Durshley" Suzanne.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Andrea Asphyxia.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Alexander Vincent.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Aidenxx @ VF.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Gerardo Andres.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Oliver.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of P4IN @ VF.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Racheal Scandalous.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Tayden Toxic.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Taylor Butler.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Dahvie Vanity.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Damaris.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kate Langhamer.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Autumn Bottom Leppla.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Amanda Alert.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Kileigh "Kringe" Elaine.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Izzy Hilton.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Jennifer Genuine.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of carina crimson.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Emily Villanueva.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Amanda Shell.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Adrii Aidenn.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Serena Iris.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Justine Price.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of brandinicoleraindrop.') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of Katie Marie Cooper(miss teen usa Montana)') { $message = "$line $user"; } if ($line == ''.$reason.' Fake of kelly killjoy') { $message = "$line $user"; } if ($line == 'This User Has Been Suspended') { $by = $reason = next($file); $reason = next($file); $message = "$user Has Been Suspended By VF Admin For:$by$reason$form"; } } if ($message) { echo "<font color=red>$message</font>";} if(!$message) { echo $form;} } ?> ill be happy when this all finally works Quote Link to comment https://forums.phpfreaks.com/topic/192282-isset-returning-false/#findComment-1013291 Share on other sites More sharing options...
premiso Posted February 16, 2010 Share Posted February 16, 2010 It would tend to help if you also posted the section where you are trying to use isset (or even add the isset code in there). As I fail to see any isset being used in that code you posted. Quote Link to comment https://forums.phpfreaks.com/topic/192282-isset-returning-false/#findComment-1013292 Share on other sites More sharing options...
darkfreaks Posted February 16, 2010 Author Share Posted February 16, 2010 i basically did if($submit) { //process } which works fine but it doesnt match "this user is dead" Quote Link to comment https://forums.phpfreaks.com/topic/192282-isset-returning-false/#findComment-1013293 Share on other sites More sharing options...
premiso Posted February 16, 2010 Share Posted February 16, 2010 You are making little sense. Is this what you tried? if(isset($submit)) { If so, that tends to lead me to believe you are working with register_globals being on, which in itself can cause a security loop hole, especially if you do not define variables. Either of the two ways below would be preferred: if(isset($_POST['submit'])){ Or: $submit = isset($_POST['submit'])?$_POST['submit']:false; if($submit){ Note with the first method, if you are using $submit anywhere else in your code, you should define it as I have shown in the second method, as this ensures that $submit has a value which you know where it comes from. Quote Link to comment https://forums.phpfreaks.com/topic/192282-isset-returning-false/#findComment-1013300 Share on other sites More sharing options...
darkfreaks Posted February 16, 2010 Author Share Posted February 16, 2010 thanks the second one worked Quote Link to comment https://forums.phpfreaks.com/topic/192282-isset-returning-false/#findComment-1013303 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.