concatenation with multiple quotes while displaying html using PHP -


this question has answer here:

please assist in doing concatenation here

    echo"<form class='navbar-form navbar-left' role='search' method='post' action='addr3.php'>     <input type="hidden" name="id_delete" value="'.$id_r.'">     <button type='submit' class='btn btn-primary'> roaming </button>     </form>"; 

make sure dont use ' , " in same way, should work:

echo "<form class='navbar-form navbar-left' role='search' method='post' action='addr3.php'> <input type='hidden' name='id_delete' value='".$id_r."'> <button type='submit' class='btn btn-primary'> roaming </button> </form>"; 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -