Jump to content

How to eliminate space from textbox, if user enters space's


Chatrapati

Recommended Posts

There is no function provided by php that does what you are asking. So the answer is correct, you're just wanting somebody to make the code for you instead of doing it yourself. Maybe try learning a bit more basic php so you don't have to wait all day to solve simple dilemmas.

 

if( empty( trim($_POST['name']) ) )
{
    echo 'Text field _name_ cannot be empty.';
}

Archived

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

×
×
  • Create New...

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.