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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

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