PDA

View Full Version : Unterminated string constant?



techno_race
07-26-2008, 03:03 PM
I am having some difficulty with this line of code:

<input type="submit" name="button" id="button" value="Tally" onClick="window.location = 'tally.php?sfonts=' + document.getElementById('textfield').value + '&ssounds=' + document.getElementById('textfield3').value + '&swallpaper=' + document.getElementById('textfield4').value + '&sicons=' + document.getElementById('textfield5').value + '&ssoundtracks=' + document.getElementById('textfield6').value + '&sprograms=' + document.getElementById('textfield7').value + '&dfonts=' + document.getElementById('textfield2').value + '&dsounds=' + document.getElementById('textfield8').value + '&dwallpaper=' + document.getElementById('textfield9').value + '&dicons=' + document.getElementById('textfield10').value + '&dsoundtracks=' + document.getElementById('textfield11').value + '&dprograms=' + document.getElementById('textfield12').value';">
In Firefox, the button doesn't do anything. In IE, I get an unterminated string constant error! Please help!

thetestingsite
07-26-2008, 03:12 PM
Take the highlighted part below out:



'&dprograms=' + document.getElementById('textfield12').value';


Hope this helps.

techno_race
07-26-2008, 03:16 PM
(bangs head)