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' /> 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'] 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... 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
Archived
This topic is now archived and is closed to further replies.