admin管理员组文章数量:1335414
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.
本文标签: plugin developmentAdding dropdown list to tutor lms registration form
版权声明:本文标题:plugin development - Adding dropdown list to tutor lms registration form 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742387239a2465276.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论