Cheers for the help guys
Quote:
Originally Posted by grantw It looks like a browser issue mate, both work fine in IE - in firefox the link works but the form doesn't. Firefox seems to be handling the & in the url differently in the link and in the form.
Copy and paste the url into firefox from the code and it don't work, replace all the & with & and it works.
Grant |
Just replaced all the & with & as below but still the form doesn't work, but the link is fine
Code:
<p><script type="text/javascript">// <![CDATA[
function doit() {
var x = document.getElementById('symtb').value
window.open('http://being.successfultogether.co.uk/click.asp?ref=558809&site=7865&type=text&tnb=1&diurl=http://www.webuyanycar.com/affiliateTracker.aspx?AffiliateID=1007&CreativeID=72&Reg='+x)
}
// ]]></script>
</p>
<p>
<input id="symtb" size="20" type="text" value="SU06NJX" /> <button onclick="doit()">Get Value</button></p>
<p> </p>
<p><a href="http://being.successfultogether.co.uk/click.asp?ref=558809&site=7865&type=text&tnb=1&diurl=http://www.webuyanycar.com/affiliateTracker.aspx?AffiliateID=1007&CreativeID=72&Reg=SU06NJX">link</a></p> I just found
this link, do I need to swap the & for %26