I need to add a $ variable to an href url, I have tried all I can think of as well as searching the web. I have tried concatenating but nothing I do works $id contains the id number I want to pass
</form>
<input type="button"
name="add"
value="New Sub-group"
onclick="location.href='prodsub.php?id={$id}'"
style="float: right; background-color:gray; color:#fff;" />
Thank you
If this is PHP, use: