php - Why am I getting an "undefined index" error? -


i getting undefined index error following code:

<?php   echo"<input name='type' disabled='disabled' type='text' id='type' value=$room_type />";  ?>   if(isset($_post['type'])) {    $type=$_post['type'] } 

assuming code correct , not provided, disabled form inputs not submitted browsers, that's why $_post['type'] undefined.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -