how do i use a variable in html?

Thomas Arndt

New member
i want to use something like this:
game.htm?g=____
but with something else in the blank,
and need it to be recalled as both text, and within this code:
<embed src=_____>
 
You could do PHP. I don't think HTML has variables unless they've introduced something recently I'm unaware of.

game.php?g=2222

<embed src="<?php echo $_GET['g']; ?>">
 
Back
Top