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. Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
trillion Posted September 16, 2006 Author Share Posted September 16, 2006 that's itThank you Quote Link to comment 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.