Hi I'm super new in programing and I have to make an alert box showing my name or whatever I put on the URL.
my code to show my name on the screen is this one.
<?php
echo "Hej $_GET[namn]";
?>
and here is an example of what this does. http://www.webbacademy.se/webmaster/ovningar/php/get.php?namn=Kevin
which if I change the name on the url I get an alert with another name but I need to show it as an alert. but I have no ide how. this is what I've got so far but its not working.
<?php
echo '<script language="javascript">';
echo 'alert("Hej $_GET[namn]")';
echo '</script>';
?>