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
Post a Comment