Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

You should only use the attribute readonly, not disabled. Check thisCheck this

  • readonly: input can't be modified
  • disabled: input has no form function

And also check form input is isset, like below:

$avatar = null; if(isset($_POST['_ava'])) { $avatar = $_POST['_ava']; } 

You should only use the attribute readonly, not disabled. Check this

  • readonly: input can't be modified
  • disabled: input has no form function

And also check form input is isset, like below:

$avatar = null; if(isset($_POST['_ava'])) { $avatar = $_POST['_ava']; } 

You should only use the attribute readonly, not disabled. Check this

  • readonly: input can't be modified
  • disabled: input has no form function

And also check form input is isset, like below:

$avatar = null; if(isset($_POST['_ava'])) { $avatar = $_POST['_ava']; } 
Source Link
vural
  • 391
  • 2
  • 11

You should only use the attribute readonly, not disabled. Check this

  • readonly: input can't be modified
  • disabled: input has no form function

And also check form input is isset, like below:

$avatar = null; if(isset($_POST['_ava'])) { $avatar = $_POST['_ava']; }