phpretard Posted January 26, 2008 Share Posted January 26, 2008 When I insert this it inserts --- N; Does anyone know why it inserts that as opposed to the right stuff. Worthless code below: $url=serialize($_POST['url']); mysql_query("INSERT INTO secure_links1 (id, name, url, access)VALUES('', 'name', '$url', 'access')"); <input type='checkbox' id='url[]' value='$url' /> Quote Link to comment https://forums.phpfreaks.com/topic/87932-solved-what-n-tarnation-is-n/ Share on other sites More sharing options...
Barand Posted January 26, 2008 Share Posted January 26, 2008 You'll need to give the c/box a name attribute of "url[]" if you hope to pick it up with $_POST['url'] Quote Link to comment https://forums.phpfreaks.com/topic/87932-solved-what-n-tarnation-is-n/#findComment-449893 Share on other sites More sharing options...
phpretard Posted January 26, 2008 Author Share Posted January 26, 2008 Thank you! My eyes get lost in the code and miss the simple things... Quote Link to comment https://forums.phpfreaks.com/topic/87932-solved-what-n-tarnation-is-n/#findComment-449894 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.