<table class="gray-form-table">
<thead>
<tr>
<th>主题</th>//默认填充为用户账号
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" name="data[title]" value="{$uid}" /></td>
</tr>
</tbody>
</table>原本默认的主题字段默认填充为了用户账号,使用默认的模板会自动获取到账号,但是我自定义了一个表单模板:userForm_post.html,将{$myfield}修改了一下上面的代码,不能获取到$uid,在论坛搜索了一下没找到方法,希望大佬能解答一下。

新增一个字段自动获取uid也是不会显示,不知道代码怎么写
<td><input type="text" name="data[biaoti4]" value="{$biaoti4}" /></td>
不行啊大佬
<table class="gray-form-table"> <thead> <tr> <th>主题</th> <th>标题1</th> <th>标题2</th> <th>标题3</th> <th>标题4</th> </tr> </thead> <tbody> <tr> <td><input type="text" name="data[title]" value="{uid}" required /></td> <td><input type="text" name="data[biaoti1]" value="{$biaoti1}" required /></td> <td><input type="text" name="data[biaoti2]" value="{$biaoti2}" required /></td> <td><input type="text" name="data[biaoti3]" value="{$biaoti3}" required /></td> <td><input type="text" name="data[biaoti3]" value="{$biaoti4}" /></td> </tr> </tbody> </table>