0

I have attempted using this PHP

if ($_POST['use'] != 'Photo/Video Editing' || $_POST['use'] != 'Gaming' || $_POST['use'] != 'General Purpose' || $_POST['use'] != 'Streaming') {
  echo "<p>You have changed the options - Input Invalid</p>";
} else
//Run what would normally happen

for this HTML

  <fieldset class="qwrapper">
          <legend class="ctext">What is the main use case for your computer?</legend>
          <input required  type="radio" name="use" value="Photo/Video Editing"> Photo/Video Editing
          <br>
          <input required  type="radio" name="use" value="Gaming"> Gaming
          <br>
          <input required  type="radio" name="use" value="General Purpose"> General Purpose
          <br>
          <input required  type="radio" name="use" value="Streaming"> Media Machine
          <br>

        </fieldset>

This code results in the php echoing 'You changed the options - input invalid' even when I haven't actually changed the values in the inspector to test.

0 Answers0