...

View Full Version : Forces spaces to be filled with   on form submit



DruX
05-23-2009, 11:58 PM
I have setup a form that adds data to a MySQL database, however I need spaces in textarea form inputs to be filled with   instead of just a regular space when the data is added to the MySQL table.

For example, if someone enter "Ice Cream" in the text box and clicks submit, "Ice Cream" is what actually needs to be added in the database table.

I am wonder if this is possible and how to set this up. Not sure if it can be accomplished with HTML, PHP, or in MySQL.

-DruX

VIPStephan
05-24-2009, 12:38 AM
Do a str_replace (http://php.net/str_replace) when the form data is submitted?

abduraooft
05-24-2009, 02:59 PM
For example, if someone enter "Ice Cream" in the text box and clicks submit, "Ice Cream" is what actually needs to be added in the database table. Let me ask, what's your actual purpose?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum