I cannot find anywhere, this is unique problem I think.
I want to add grade ending with plus such as B+, C+ or D+. I can added A-, B-, C- and D- or any other grade A,B,C,D,F. However, when I want to add variable ending with plus it is disappeared. Can someone see any problem in my code.
Small part of index.php
var subjectone = $('#selectedsubjectone :selected').val();
var courseone = $('#courseListone').val();
var gradeone = ($('#selectedGradeOne :selected').val());
var div = document.getElementById("dom-target");
var username = div.textContent;
username = username.trim().replace(/ /g, '%20');
if(gradeone != 'gradesvalue'){
  var enrolledone ="username="+username+"&subject="+subjectone+"&grade="+gradeone+"&course="+courseone;          //I CHECK THERE IS NO PROBLEM HERE. IT SHOWS WITH PLUS.
       $.ajax({
         type: "POST",
         url: "updatecourse.php",
         data: enrolledone,
         success: function(data) {}
       });
There are two similar php file one of them for insert one of them for update. It is updatecourse.php
<?php
include_once "connection.php";
if(isset($_POST["username"]) && isset($_POST["subject"]) && isset($_POST["course"]) && isset($_POST["grade"])){
    $nick = urldecode($_POST["username"]);
    $subject=urldecode($_POST["subject"]);
    $course=urldecode($_POST["course"]);
    $grade=urldecode($_POST["grade"]);
    echo "$nick - $subject - $course - $grade";  //IT SHOWS B, NOT B+ IN HERE.
    $prep = $con->prepare("UPDATE enrolledtable SET grade=? WHERE nickname=? AND subject=? AND course=?");
    $prep->bind_param("ssss", $grade, $nick, $subject, $course);
    $send = $prep->execute();
    if ($send == TRUE) {
        echo "Courses added successfully";
        //header('Location: index.php');
        exit();
    } else {
        echo "Error: " . $con->error;
        //header('Location: index.php');
        exit();
    }
  }?>
In php part B+ becomes B, C+ becomes C. What is the problem in php? Or should I change data type in js.
 
     
    