i was thinking it would refresh the page, then show the message after that. Executing the functions in order.
So if i need to reverse them then that is fine i can do..
showmessage then redirect. But if that is the case then i will need to add something to my message like a button.
in other words i need to show the message then stop and tell the user that they need to refresh the page to see their song on the list.
i can set in php this..
then in my showmessage function i should be able to do this
$btn = "<input type='submit' name='submit' value='Please click to refresh the page' onclick='redir($gowhere);' />";
that way they will see any message then they can push the button to refresh the page.
var smsg = "<?php echo $showmesg; ?>";
var btn = "<?php echo $btn; ?>";
document.getElementById('showmsg').innerHTML=smsg + btn;
}//close function showmessage
window.location.href = val;
}//close function redir