I currently have a script that outputs certain values in a db and it's working as intended. But now, I am trying to add a column with buttons. Very every row that the db spits out, I need a button that would open run a javascript function and then open a window. This works in HTML just fine, but because its in PHP and in #echo its not working. It has to do something with my quotes, but I can't seem to figure it out. Does someone know how to have a button embedded in an echo that can also do javascript? FYI - I would like the buttons to be within the echo so if there are 10 rows, 10 buttons will show up. Thanks!
while($row = odbc_fetch_array($rs))
{
echo '
<tr>
<td class="td" valign="top">
<input type="submit" name="SendEmailManually" value="Submit" onclick="window.open("index.php","newWin", "width=400,height=400")" /></td>
<td class="td" valign="top">' . $Value1 . '</td>
<td class="td" valign="top">' . $Value2 . '</td>
<td class="td" valign="top">' . $Value3 . '</td>
<td class="td" valign="top">' . $Value4 . '</td>
</tr>
';
}
onclickattribute can't have double quotes within double quotes.