[英]smarty post value issue
I am using the following code in my add user form:我在添加用户表单中使用以下代码:
<input type="text" size="50" name="name"
value="{if isset($post.name)}{$post.name}{elseif isset($details.name)}{$details.name}{/if}" />
However the form returns blank in case of any error(PHP validation) but it should show post value( $post.name
)但是,如果出现任何错误(PHP 验证),表单将返回空白,但它应该显示帖子值( $post.name
)
i have solved the issue mysql, it should be $smarty.post.name
instead of $post.name
, thanks for your support.我已经解决了 mysql 的问题,它应该是$smarty.post.name
而不是$post.name
,感谢您的支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.