<?php echo "<tr><td class=\"sub\" ><span class=\"style2\">Student Name:</span></td><td><select name='studentname'><option value=''>Student Name</option></select></td></tr>"; ?> PHP: and I would like to change the two "Student Name" with a value from an array $gr_lang['Student Name'] I tried this but gives errors <?php echo "<tr><td class=\"sub\" ><span class=\"style2\">,$gr_lang['Student Name'],:</span></td><td><select name='studentname'><option value=''>,$gr_lang['Student Name'],</option></select></td></tr>"; ?> PHP: Any help would be appreciated
Try echo '<tr><td class="sub"><span class="style2">' . $gr_lang['Student Name'] . ':</span></td><td><select name="studentname"><option value="' . $gr_lang['Student Name'] . '"></option></select></td></tr>'; PHP: