Kelset Posted November 3, 2006 Share Posted November 3, 2006 Hello all!Ok I have an a form the passes a bunch of checkboxes.E.G. <INPUT TYPE='checkbox' NAME='five[]' value=".$image[$i]."'>This give me the result I want when I look at the code in the page, example would be.<INPUT TYPE='checkbox' NAME='eight[]' value=wedding106.jpg'>Ok I have some checkboxes name five[] as well and I load them into a multi array and jam that into a session.The problem is it seems to be adding a "\" at the end of the value. Does anybody know why this is doing thatand maybe how I can fix it?Not sure if I explained this right, I'm very tired :( hehe.. Let's say I'm using a normal array so when I submit the form$_POST['eight'] will receive all the values of those checkboxes. So it should look like thisarray('wedding106.jpg')but I'm getting array('wedding106.jpg\')Not sure where the "\" is coming from.Thanks for helping me in this matter :)Stephen Quote Link to comment Share on other sites More sharing options...
AndyB Posted November 3, 2006 Share Posted November 3, 2006 Typically ... value=wedding106.jpg'> ... missing 'Should be value ='wedding106.jpg'That should fix 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.