- Posts: 2
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $.post('https://www.mafoserver.de/myFolder/renameFile.php' , { sid: "{SID}", fname:"{eqFname}", ext: "{eqExt}" },function(data) { $('#question{QID} input[type="text"]').val(data) }); }); </script>
<?php $ssid = $_POST["sid"]; $sfname = $_POST["fname"]; $sExt = $_POST["ext"]; $sfullname = '../limesurvey/upload/surveys/'.$ssid.'/files/'.$sfname; $sNewName=$sfullname.'.'.$sExt; $x=rename($sfullname,$sNewName); echo $sfname.'.'.$sExt; ?>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.