I am trying to echo a form which contains more php. I am getting error message expecting comma or semicolon.
Can anyone help me out?
echo "<html><body><form action="index.php?tagid="'.$tagid.'" method="post">edit scanned tag's value<input type="text" name="tagvalue"><br><input type="submit" value="<?php $file = fopen("myfile.json","a"); $tagval = json_decode($json); echo $tagval->{'tagid'}; fclose($file); ?>"></form></body></html>";