I seem to have a problem with some javascript inserted by PHP (I am reasonably certain mey error is in the javascript not the PHP code which is why I am posting here
Code:
<script type='text/javascript'>
window.open('dealer/Dealer Name','Dealer Name','width=800,height=600');
</script>
[code]
whare Dealer Name can change depending on my actual database
this works when Dealer Name does not contain any spaces but I get an error with script on page when the name includes spaces.