trillion Posted September 16, 2006 Share Posted September 16, 2006 How can I change spaces in a $_POST into underscores?I need the input to have spaces for general use but also want to use this same input to create a MySQL table with a prefix reflecting the $_POST so it is a unique occurence. Link to comment https://forums.phpfreaks.com/topic/21005-change-input-spaces-to-underscores/ Share on other sites More sharing options...
AndyB Posted September 16, 2006 Share Posted September 16, 2006 Like this??[code]$this = str_replace(" ","_",$_POST['whatever_its_name_is']); [/code] Link to comment https://forums.phpfreaks.com/topic/21005-change-input-spaces-to-underscores/#findComment-93198 Share on other sites More sharing options...
trillion Posted September 16, 2006 Author Share Posted September 16, 2006 that's itThank you Link to comment https://forums.phpfreaks.com/topic/21005-change-input-spaces-to-underscores/#findComment-93203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.