I have a php page with some javascript also, but this javascript below doesn't seem to work, or maybe I'm way off!
I am trying something like this:
var areaOption=document.getElementById("<?php echo @$_POST['annonsera_name']?>");
areaOption.selected=true;
Also I have tried this, but it only alerts a BLANK alert-box:
alert (<?php echo $test;?>); // I have tried this with quotes, double-quotes etc... no luck
Am I thinking completely wrong here?
UPDATE
Some php code:
<?php
$test = "Hello World!";
?>
Thanks