Wednesday, April 13, 2011

browse picture(php)

<input type="hidden" name="MAX_FILE_SIZE" value="90000000"/><input type="file" name="image" size="30"/>&nbsp;
<?php
             include("connect.php");
        $x=1;   
      if(isset($_POST['Submit']))
      {
       
       
       
                $target_path = "images/";
                $target_path = $target_path . basename( $_FILES ['image']['name']);
                    if(move_uploaded_file($_FILES['image']['tmp_name'], $target_path))
                    {
                       
                        $imgdis = $_FILES['image']['name'];
                        $txtq1 = $_POST['txtq1'];               
                         $txtq2 = $_POST['txtq2'];
                        $txtfname = $_POST['txtfname'];
                        $txtmname = $_POST['txtmname'];
                        $txtlname = $_POST['txtlname'];
                        $txtadd1 = $_POST['txtadd1'];
                        $txtadd2 = $_POST['txtadd2'];
                        $txtnat = $_POST['txtnat'];
                        $txtblood = $_POST['txtblood'];
                        $txtdob = $_POST['txtdob'];
                        $txtpob = $_POST['txtpob'];
                        $txtage = $_POST['txtage'];
                        $txtstat = $_POST['txtstat'];
                        $txtrel = $_POST['txtrel'];
                        $txtchurch = $_POST['txtchurch'];
                        $txtpriest = $_POST['txtpriest'];
                        $txtlangauge = $_POST['txtlangauge'];
                        $txttribe = $_POST['txttribe'];
                        $txtspec = $_POST['txtspec'];
                        $txtparents = $_POST['txtparents'];
                        $txtpadd = $_POST['txtpadd'];
                        $txtdep1 = $_POST['txtdep1'];
                        $txtage1 = $_POST['txtage1'];
                        $txtrel1 = $_POST['txtrel1'];
                        $txtdep2 = $_POST['txtdep2'];
                        $txtage2 = $_POST['txtage2'];
                        $txtrel2 = $_POST['txtrel2'];
                        $txtdep3 = $_POST['txtdep3'];
                        $txtage3 = $_POST['txtage3'];
                        $txtrel3 = $_POST['txtrel3'];
                        $txtdep4 = $_POST['txtdep4'];
                        $txtage4 = $_POST['txtage4'];
                        $txtrel4 = $_POST['txtrel4'];
                        $txtdep5 = $_POST['txtdep5'];
                        $txtage5 = $_POST['txtage5'];
                        $txtrel5 = $_POST['txtrel5'];
                        $txtbro = $_POST['txtbro'];
                        $txtwork = $_POST['txtwork'];
                        $txtterm = $_POST['txtterm'];
                        $txtwhy = $_POST['txtwhy'];
                        $txtreceive = $_POST['txtreceive'];
                        $txtexpect = $_POST['txtexpect'];
                        $txtassign = $_POST['txtassign'];
                        $txtexper = $_POST['txtexper'];
                        $txtaccused = $_POST['txtaccused'];
                        $txtresult = $_POST['txtresult'];
                        $txtlabor = $_POST['txtlabor'];
                        $txtunion = $_POST['txtunion'];
                        $txtstrike = $_POST['txtstrike'];
                        $txtcom = $_POST['txtcom'];
                        $txtwhen = $_POST['txtwhen'];
                        $txtsmoke = $_POST['txtsmoke'];
                        $txtdrink = $_POST['txtdrink'];
                        $txtbottles = $_POST['txtbottles'];
                        $txttimes = $_POST['txttimes'];
                        $txthos = $_POST['txthos'];
                        $txtill = $_POST['txtill'];
                        $txtcards = $_POST['txtcards'];
                        $txtgames = $_POST['txtgames'];
                        $txtsport = $_POST['txtsport'];
                        $txthobbies = $_POST['txthobbies'];
                        $txtexam = $_POST['txtexam'];
                        $txtdysme = $_POST['txtdysme'];
                        $txtmens = $_POST['txtmens'];
                           
        $result = "INSERT INTO tbl_apps(`q1`,`q2`,`fname`,`mname`,`lname`,`add1`,`add2`,`nat`,`bld`,`dob`,`pob`,`age`,`stat`,`rel`,`church`,`priest`,`lang`,`tribe`,`spec`,`parents`,`padd`,`dep1`,`age1`,`rel1`,`dep2`,`age2`,`rel2`,`dep3`,`age3`,`rel3`,`dep4`,`age4`,`rel4`,`dep5`,`age5`,`rel5`,`bro`,`work`,`term`,`why`,`receive`,`expect`,`assign`,`exper`,`accused`,`rs`,`labor`,`union`,`strike`,`com`,`when`,`smoke`,`drink`,`bottles`,`times`,`hos`,`ill`,`cards`,`games`,`sport`,`hobbies`,`exam`,`dysme`,`mens`,`pic`,`jobID`,`rd`) VALUES('$txtq1','$txtq2','$txtfname','$txtmname','$txtlname','$txtadd1','$txtadd2','$txtnat','$txtblood','$txtdob','$txtpob','$txtage','$txtstat','$txtrel','$txtchurch','$txtpriest','$txtlangauge','$txttribe','$txtspec','$txtparents','$txtpadd','$txtdep1','$txtage1','$txtrel1','$txtdep2','$txtage2','$txtrel2','$txtdep3','$txtage3','$txtrel3','$txtdep4','$txtage4','$txtrel4','$txtdep5','$txtage5','$txtrel5','$txtbro','$txtwork','$txtterm','$txtwhy','$txtreceive','$txtexpect','$txtassign','$txtexper','$txtaccused','$txtresult','$txtlabor','$txtunion','$txtstrike','$txtcom','$txtwhen','$txtsmoke','$txtdrink','$txtbottles','$txttimes','$txthos','$txtill','$txtcards','$txtgames','$txtsport','$txthobbies','$txtexam','$txtdysme','$txtmens','$imgdis','$id','n')";
                        $rs1 = mysql_query($result) or die("Invalid Query <br>$result");
                        $x++;
           
                   
                }
            }
if($x>1)
echo'<script type="text/javascript">document.location.href="job_app_msg.php";</script>';

            ?>

No comments:

Post a Comment