Why does php add a space to the beginning of a string $_POST variables?

  • Thread starter Thread starter kamboyer17
  • Start date Start date
PHP does not add space to the beginning of a string on a posted variable. Check your code.

<input type="text" name="fname" value="John" />

if you submit this, you will have $_POST['fname'] with the exact value John.
 
Back
Top