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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -