Jump to content

Archived

This topic is now archived and is closed to further replies.

trillion

change input spaces to underscores

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Like this??

[code]$this = str_replace(" ","_",$_POST['whatever_its_name_is']); [/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.