i define variable as
var $ST;
var $kW;
var $hz;
how i/m gonna embedded this var into html
i try to call using this->$ST but html undefined this constant.
i also try $ST and same error occurs.
please help me
Copyright © 2024 VQUIX.COM - All rights reserved.
Answers & Comments
Verified answer
<input type=text value="<?= @$variable ?>"> This example assumes your PHP tag is closed to start with. The @ symbol says that if the variable is empty, it won't give any errors; instead, it'll just be blank.
Might help if you specified the language and the error you're getting.
try using double quotes in place of single ones as in:
echo "<input type=text value=\"" $ST "\"><br />"