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. 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 Link to comment https://forums.phpfreaks.com/topic/139405-input-userdata-into-array/#findComment-729201 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.