Topic: Logic error in form submision - Create Company Form
Refer to the lines 303-312 in admin/create_coy.php :-
<script language='javascript'>
function updateCompany() {
if (document.forms[0].uploadfile.value!='' && document.forms[0].dbname.value!='') {
document.forms[0].action='create_coy.php?c=u&ul=1&id=" . $n . "&fn=' + document.forms[0].uploadfile.value
}
else {
document.forms[0].action='create_coy.php?c=u&id=" . $n . "&fn=' + document.forms[0].uploadfile.value
}
document.forms[0].submit()
}
The else statement alludes to uploadfile.value when it is non-existent.