hie all
i got a form
if i input "Welcome ", with a few spaces, i cannot get all the spaces. the $_POST['MyInput'] only give single space. can anyone help me
help me on this..thanks
i got a form
Code:
<form name="TEST" method=POST action="test.php"> <input type="text" name="MyInput"> <input type="submit" name="ACTION" value="SAVE"> </form>
Code:
if ( isset($_POST['ACTION']) )
{
if ( $_POST['ACTION'] == 'SAVE' )
{
$SQL = 'SELECT * FROM NAME WHERE NAME = \''.$_POST['MyInput'].'\''; // this is where multiple spaces become single space
}
}
Comment