I can't get the value of the very last line of this code to be anything but static. I need it to be hardcoded so when they pull down the menu and select, it takes that value and puts it forth into the action script.
Any help?
<select id="yo5" onChange="asdf90()"><option>// Let the Page Refresh for each Pick Please!</option>
<option id="yo4" value="<?php echo $test1 ?>"><?php echo $test1 ?></option>
<option value="<?php echo $test2 ?>"><?php echo $test3 ?></option>
<option><?php echo $test4 ?></option>
<option><?php echo $test5 ?></option>
<option><?php echo $test6 ?></option>
<option><?php echo $test7 ?></option>
<option><?php echo $test8 ?></option>
<option><?php echo $test9 ?></option>
<option><?php echo $test10 ?></option>
</select>
<script type = "text/javascript">
function asdf90()
{
elem = <?php $test1 ?>;
if(document.getElementById('yo5').value = elem)
{
alert('hi');
}
}
</script>
<form method="post" action="<?php echo network_admin_url('site-new.php?action=add-site'); ?>">
<div id="nonexsist4"><input name="blog[domain]" type="hidden" value="" /></div>
<?php $test1 ?>does nothing. You need<?php echo $test1 ?>.