我正在 codeigniter 中提交表单。在我的输入中输入文本,希望在发生错误时保留该值。
<input type="text" name="lastname" id="lnm" >
我尝试使用在 php.ini 中执行的 $_get['lastname']
。但它不起作用。
最佳答案
使用set_value()
它将解决您的问题
<input type="text" name="lastname" id="lnm" value="<?php echo set_value('lastname', '0'); ?>" >
关于php - 如何在codeigniter中获取提交的表单数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29294121/