0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
application_old
/
[
Home
]
File: apply_lease_application.php
<? include('../includes/config.php'); session_start(); if($_POST['Submit']=="Apply Now") { $fin="finan_".session_id(); { $q_temp_fin="select * from $fin"; $r_temp_fin=mysql_query($q_temp_fin); $row_temp_fin=mysql_fetch_array($r_temp_fin); $q_find="select * from finance_application where order_id='".$row_temp_fin[1]."'"; $r_find=mysql_query($q_find); if(mysql_num_rows($r_find)==0) { $q_insert="INSERT INTO `finance_application` ( `application_id`, `order_id`, `first_name`, `mid_name`, `last_name`, `dob`, `ssn`, `email`, `street_addr`, `city`, `state`, `zip`, `phone`, `resided_for_y`, `resided_for_m`, `house_type`, `prev_street_addr`, `prev_city`, `prev_state`, `prev_zip`, `employer`, `emp_city`, `emp_state`, `emp_zip`, `emp_occu`, `emp_phone`, `emp_for_y`, `emp_for_m`, `emp_gross`, `other_source`, `emp_other_for_y`, `emp_other_for_m`, `emp_other_gross`, `co_first_name`, `co_mid_name`, `co_last_name`, `co_dob`, `co_ssn`, `co_email`, `co_street_addr`, `co_city`, `co_state`, `co_zip`, `co_phone`, `co_resided_for_y`, `co_resided_for_m`, `co_house_type`, `co_prev_street_addr`, `co_prev_city`, `co_prev_state`, `co_prev_zip`, `co_employer`, `co_emp_city`, `co_emp_state`, `co_emp_zip`, `co_emp_occu`, `co_emp_phone`, `co_emp_for_y`, `co_emp_for_m`, `co_emp_gross`, `co_other_source`, `co_emp_other_for_y`, `co_emp_other_for_m`, `co_emp_other_gross`) VALUES ( NULL, '".$row_temp_fin[1]."', '".$row_temp_fin[2]."', '".$row_temp_fin[3]."', '".$row_temp_fin[4]."', '".$row_temp_fin[5]."', '".$row_temp_fin[6]."', '".$row_temp_fin[7]."', '".$row_temp_fin[8]."', '".$row_temp_fin[9]."', '".$row_temp_fin[10]."', '".$row_temp_fin[11]."', '".$row_temp_fin[12]."', '".$row_temp_fin[13]."', '".$row_temp_fin[14]."', '".$row_temp_fin[15]."', '".$row_temp_fin[16]."', '".$row_temp_fin[17]."', '".$row_temp_fin[18]."', '".$row_temp_fin[19]."', '".$row_temp_fin[20]."', '".$row_temp_fin[21]."', '".$row_temp_fin[22]."', '".$row_temp_fin[23]."', '".$row_temp_fin[24]."', '".$row_temp_fin[25]."', '".$row_temp_fin[26]."', '".$row_temp_fin[27]."', '".$row_temp_fin[28]."', '".$row_temp_fin[29]."', '".$row_temp_fin[30]."', '".$row_temp_fin[31]."', '".$row_temp_fin[32]."', '".$row_temp_fin[33]."', '".$row_temp_fin[34]."', '".$row_temp_fin[35]."', '".$row_temp_fin[36]."', '".$row_temp_fin[37]."', '".$row_temp_fin[38]."', '".$row_temp_fin[39]."', '".$row_temp_fin[40]."', '".$row_temp_fin[41]."', '".$row_temp_fin[42]."', '".$row_temp_fin[43]."', '".$row_temp_fin[44]."', '".$row_temp_fin[45]."', '".$row_temp_fin[46]."', '".$row_temp_fin[47]."', '".$row_temp_fin[48]."', '".$row_temp_fin[49]."', '".$row_temp_fin[50]."', '".$row_temp_fin[51]."', '".$row_temp_fin[52]."', '".$row_temp_fin[53]."', '".$row_temp_fin[54]."', '".$row_temp_fin[55]."', '".$row_temp_fin[56]."', '".$row_temp_fin[57]."', '".$row_temp_fin[58]."', '".$row_temp_fin[59]."', '".$row_temp_fin[60]."', '".$row_temp_fin[61]."', '".$row_temp_fin[62]."', '".$row_temp_fin[62]."' )"; $r_insert=mysql_query($q_insert); if($r_insert) { ?> <div align="center"><font color="#990000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> Thank you for submiting your application. <br> We will review your application soon and inform you.<br> <br> <font color="#FF0000">Please Close This Window...</font></font> <? $q_update="update order_header set payment_process='Lease - Application Submited' where order_id='".$row_temp_fin[1]."'"; $r_update=mysql_query($q_update); } else { echo mysql_error(); } } else { ?> </div> <br> <br> <br> <div align="center"><font color="#990000" size="4" face="Verdana, Arial, Helvetica, sans-serif">Your Application Already Submitted....</font><font color="#990000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><br> <br> <font color="#FF0000">Please Close This Window...</font></font></div> <? } } } ?>