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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -