treeleaf20 Posted November 13, 2009 Share Posted November 13, 2009 All, I have the following code: var poststr = "statusupdate=" + encodeURI( document.getElementById("statusupdate").value ) + "&user_name=" + encodeURI( document.getElementById("user_name").value ) + "&twitteryes=" + encodeURI ( document.getElementById("twitteryes").checked ) + "¤tstatus=" + encodeURI( document.getElementById("currentstatus").value ); It seems to be failing on the "&twitteryes=" + encodeURI (document.getElementById("twitteryes").checked ) If I remove it, this part works fine. This is the HTML code: <input type="checkbox" name="twitteryes" value="yesplease" /> Thanks in advance. Quote Link to comment Share on other sites More sharing options...
treeleaf20 Posted November 13, 2009 Author Share Posted November 13, 2009 Nevermind, I'm an idiot. Need to assign and ID to it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.