jubba890 Posted December 8, 2013 Share Posted December 8, 2013 I need something to be uploaded and then echoed. Could it be in like a textbox or something? I have been trying for like 2 days now, but I can't figure it out. Also for MySQL what would be good for holding information like this: Item1 Item2 Item3 And so on. Thanks for any help Quote Link to comment https://forums.phpfreaks.com/topic/284629-list-upload-and-echo/ Share on other sites More sharing options...
MDCode Posted December 8, 2013 Share Posted December 8, 2013 You're going to have to be much more specific. Is it an image? If so, just echo the path in an <img src=""> The second question...is not specific at all. What is Item supposed to be? Quote Link to comment https://forums.phpfreaks.com/topic/284629-list-upload-and-echo/#findComment-1461692 Share on other sites More sharing options...
jubba890 Posted December 8, 2013 Author Share Posted December 8, 2013 You're going to have to be much more specific. Is it an image? If so, just echo the path in an <img src=""> The second question...is not specific at all. What is Item supposed to be? No it is not an image. It is a list of items. The item is song names like: Hello Brainless and so on. It is the user's favorite songs Quote Link to comment https://forums.phpfreaks.com/topic/284629-list-upload-and-echo/#findComment-1461694 Share on other sites More sharing options...
Solution hitman6003 Posted December 9, 2013 Solution Share Posted December 9, 2013 If they are on separate lines, use the explode function on the input... $songs = explode("\n", $_POST['songs']);Just make sure you sanitize the input before doing anything with it. Quote Link to comment https://forums.phpfreaks.com/topic/284629-list-upload-and-echo/#findComment-1461702 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.