plugin development - Adding dropdown list to tutor lms registration form

Tutor lms plugin gives instructions of adding phome number field to its registration form as in this linkI have added

Tutor lms plugin gives instructions of adding phome number field to its registration form as in this link /

I have added dropdown list field that appears on the frontend yet I can't display the result of this field on the backend and I don't know what is the alternative code in the profile.php file and user-profile.php metabox file as mentioned for the phone number example on tutor website for the dropdown list field.

Would someone please help me regarding that. I am new to coding. -------‐----------- For coding I entered this code through code snippet to frontend if(isset($_POST['formSubmit'])) { $aUniversities = $_POST['formUniversities'];

  if(!isset($aUniversities)) 
  {
    echo("<p>You didn't select any Universities!</p>\n");
  } 
  else 
  {
    $nUniversities = count($aUniversities);

    echo("<p>You selected $nUniversities Universities: ");
    for($i=0; $i < $nUniversities; $i++)
    {
      echo($aUniversities[$i] . " ");
    }
    echo("</p>");
  }
}

//Then I entered this code in the registration.php file of the the plugin

'Select your University:

Ahram Canadian University Misr International University Other '


I tried similarcode on profile.php and user-profile-fields.php (of the metabox) but they don't seem to work

What is wrong or missing? Kindly advise.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742387239a4434302.html

相关推荐

  • plugin development - Adding dropdown list to tutor lms registration form

    Tutor lms plugin gives instructions of adding phome number field to its registration form as in this linkI have added

    19小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信