简体   繁体   中英

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 )

i have solved the issue mysql, it should be $smarty.post.name instead of $post.name , thanks for your support.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM