Jump to content

error that I cant see


powpow

Recommended Posts

I have been running into an issue with using php to program a GUI.  Basically there are a lot of forms that some times send you to a new page and other forms that refresh the pages.  It has been increasingly harder to divide my code from the before the Post and after the post.  This page is my checkbox page and is actually checking if any of the check boxes have values.  Is there an easier way of doing this?

 

 

<?php
/*
~~~~~~~~MMARS :34~~~~~~~~~~~~~~
~~~~~~~~LCM   :53~~~~~~~~~~~~~~
~~~~~~NMSEC   :85~~~~~~~~~~~~~~
~~~~~~ClassM :107~~~~~~~~~~~~~~
~~~~~~~CAPS  :128~~~~~~~~~~~~~~
~~~~~~~PMIS  :155~~~~~~~~~~~~~~
~~~~~~WrkComp:180~~~~~~~~~~~~~~

*/

include 'db.php';
include 'function.php';

echo "Stage 1" . "</ br>";
//Once this form is submitted
if(isset($_POST['MMars'] ||  $_POST['LCM'] || $_POST['NMSec'] || $_POST['ClassMMars'] || $_POST['CAPS'] || $_POST['PMIS'] || $_POST['WrkComp'])){

 

Parse error: syntax error, unexpected T_BOOLEAN_OR, expecting ',' or ')' in /var/www/html/web2/test2/test.php on line 19

 

Link to comment
https://forums.phpfreaks.com/topic/222940-error-that-i-cant-see/
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.