Jump to content

IF or help


Vivid Lust

Recommended Posts

Hi, this is probably completely wrong but:

 

I want the page to redirect to another(shown in the code) if $select doesnt equal Positive, Negative or Netural

 

This is what i tried:

 

<?php
if($select !== "Positive")
or 
if($select !== "Negative")
or
if($select !== "Neutral")
{
header('location:feedback.php?msg=2');
}
?>

 

Please correct me!

 

And thanks in advanced!

Link to comment
https://forums.phpfreaks.com/topic/121420-if-or-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.