PHP form value results in array

15
March 16, 2019, at 02:30 AM

I have a PHP form that once it's filled it sends results back to my email as a .csv file. I am having an issue with a value in my form coming back as "array" I have tried several things but I haven't had any luck finding where the error is coming from. Any suggestions? I am going a little nuts here

        <p>
       <label for="Candidacy" style="font-weight:bold;"><span class="asterisk">*</span>Degree Candidacy:</label><br/>
        <span class="errormessage Candidacy"><?php echo $CandidacyErr;?></span>
            <select size="4" name="Candidacy[]" id="Candidacy"> 
                <option value="JD Candidate" <?php if (isset($_POST['Candidacy']) && in_array('JD-Candidate', $_POST['Candidacy']))  echo ' selected="selected"';?> >Candidate 1</option>
                <option value="Joint JD/LLM Candidate" <?php if (isset($_POST['Candidacy']) && in_array('Joint-JD-LLM-Candidate', $_POST['Candidacy']))  echo ' selected="selected"';?> >Candidate 2</option>
                <option value="LLM Candidate" <?php if (isset($_POST['Candidacy']) && in_array('LLM-Candidate', $_POST['Candidacy']))  echo ' selected="selected"';?> >Candidate3</option>
                <option value="MJ Candidate" <?php if (isset($_POST['Candidacy']) && in_array('MJ-Candidate', $_POST['Candidacy']))  echo ' selected="selected"';?> >Candidate 4</option>
            </select>
    </p>
READ ALSO
Program runs but doesn&#39;t round corners

Program runs but doesn't round corners

I have the following:

24
Redirect automatically from Woocommerce thankyou to an external link passing variables

Redirect automatically from Woocommerce thankyou to an external link passing variables

In Woocommerce, after placing an order, I Would like to redirect customer automatically after 5 sec from the thankyou page to external link passing a few variables as the order_id, and the order_ammount

8
what is the best database management systeme to use for large chat website? [on hold]

what is the best database management systeme to use for large chat website? [on hold]

actually i ma sedigning a new database for a quite large chat website with some friends, but we think that phpmyadmin isn't that good for, so i need to what DBMS is the best for that, for example what facebook database uses?

11