advancedfuture Posted January 4, 2009 Share Posted January 4, 2009 I have a textfield that I want to submit the data into an array The user would enter data such as 92444,1223,12344,2322 all seperated by commas. How would I got about putting $_POST['value'] into an array. I've tried $var = array($_POST['value']) but that doesnt seem to work. Quote Link to comment https://forums.phpfreaks.com/topic/139405-input-userdata-into-array/ Share on other sites More sharing options...
kenrbnsn Posted January 4, 2009 Share Posted January 4, 2009 Use explode <?php $var = explode(',',$_POST['value']); ?> Ken Quote Link to comment https://forums.phpfreaks.com/topic/139405-input-userdata-into-array/#findComment-729201 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.