Jump to content

All Input fields values cleared if errors encountered


Recommended Posts

hi there,

 

 my site running on server and my localhost. whenever error encountered on form validation then in result it clears all entered values from the input fields. it happens only on server not on localhost.

 

nothing is wrong i think, same code as in localhost..

<input type="text" class="light" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{else}{if isset($address->company)}{$address->company}{/if}{/if}" />

what's the reason exactly? could anyone help ?

 

thanks in advance :)

Link to comment
Share on other sites

×
×
  • Create New...