php - Place variable into value attribute -


i have problem, system work need place php variable (function prefer) value attribute in html form, possible?
may different way cope problem.

 <input type="hidden" name="sum" value="<?php $payment ?>">  <input type="hidden" name="account" value="<?php $acc ?>">  <input type="hidden" name="desc" value="<?php $info ?>"> 

use echo set value:

<input type="hidden" name="sum" value="<?php isset($payment) ?  $payment : '' ; ?>"> <input type="hidden" name="account" value="<?php isset($acc) ? $acc : '' ; ?>"> <input type="hidden" name="desc" value="<?php isset($info) ? $info : '' ; ?>"> 

Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -

c# - Get the Class name in a class with atribute inside a attribute method -