Passing php variable as hidden input where html is contained in one echo -
i'm new php , still learning. <?php if(isset($_post['btnlogin'])){ $myvariable = $_post['fieldparameter']; if(condition){ //do }else{ echo " <form method='post' action='submit.php'><br/> <input type='hidden' name='myvariable' value='<?php echo $myvariable; ?>'/> <br/> <input type='submit' name='btnsubmit' id='submit' value='submit'> </form> "; } } ?> notice variable $myvariable contained in main if block. i'm trying send value of $myvariable submit.php hidden field. also, enclosed html tags using 1 echo statement double quotes. i found related questions here in so can't find similar embedding php within long echo of html tags i tried put value='<?php echo $studentno; ?>' no success. i want a...