最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugin development - Adding dropdown list to tutor lms registration form

programmeradmin0浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论