SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy what is $end error ? nt able to fix it

    ( ! ) Parse error: syntax error, unexpected $end in C:\wamp\www\advance php\login\submit.php on line 45


    PHP Code:
    <?php
    require_once 'connect.php';
    var_dump($_POST);//use to see the all the possilbe value in the form of array with thier length..
    if(isset($_POST['clientname']))
    {
    $clientname             =$_POST['clientname']        ;
    $client_l_name          =$_POST['client_lname']        ;
    $client_pass             =$_POST['client_pass']        ;
    $client_con_pass        =$_POST['client_re_pass']    ;
    $client_client_phone    =$_POST['client_phone']        ;
    $client_mail            =$_POST['clientmail']        ;
    $client_date            =$_POST['user_date']        ;
    $client_month            =$_POST['month']            ;
    $client_year            =$_POST['year']                ;
    $client_gen                =$_POST['u_gen']            ;
    $client_sallary            =$_POST['sallary']            ;
    $client_pan                =$_POST['pancard']            ;
    }
    //setcookie('username',$client,time()+120);
    //echo $_COOKIE['username'];
    //-------------------------------------------------------------
    //!validations starts here---------------
    // if($clientname=="")
    // {
    //     $err.="username can't be empty";
    // }
    // if($client_l_name=="")
    // {
    //     $err.="please fill last name";
    // }
    // if ($client_pass=="") 
    // {
    //     $err.="please choose any password";
    // }
    // if ($client_con_pass=="")
    // {
    //     $err.="please confrim password";
    //     elseif ($client_pass!=$client_con_pass) 
    //     {
    //         $pass_err="password is nt same";
    //     }
    // }
    ?>
    <!-- <html>
    <head>
        <title>submit page</title>
    </head>
    <body>
    <h1>Thank's Mr.<?php //echo $_COOKIE['username']; ?> For the intrest we will get back to u soon</h1>
    </body>
    </html> -->
    <?php
    require_once 'connect.php';
    var_dump($_POST);//use to see the all the possilbe value in the form of array with thier length..
    if(isset($_POST['clientname']))
    {
    $clientname             =$_POST['clientname']        ;
    $client_l_name          =$_POST['client_lname']        ;
    $client_pass             =$_POST['client_pass']        ;
    $client_con_pass        =$_POST['client_re_pass']    ;
    $client_client_phone    =$_POST['client_phone']        ;
    $client_mail            =$_POST['clientmail']        ;
    $client_date            =$_POST['user_date']        ;
    $client_month            =$_POST['month']            ;
    $client_year            =$_POST['year']                ;
    $client_gen                =$_POST['u_gen']            ;
    $client_sallary            =$_POST['sallary']            ;
    $client_pan                =$_POST['pancard']            ;
    }
    //setcookie('username',$client,time()+120);
    //echo $_COOKIE['username'];
    //-------------------------------------------------------------
    //!validations starts here---------------
    // if($clientname=="")
    // {
    //     $err.="username can't be empty";
    // }
    // if($client_l_name=="")
    // {
    //     $err.="please fill last name";
    // }
    // if ($client_pass=="") 
    // {
    //     $err.="please choose any password";
    // }
    // if ($client_con_pass=="")
    // {
    //     $err.="please confrim password";
    //     elseif ($client_pass!=$client_con_pass) 
    //     {
    //         $pass_err="password is nt same";
    //     }
    // }
    ?>
    <!-- <html>
    [COLOR="#FF0000"]<head>[/COLOR] Erro
        <title>submit page</title>
    </head>
    <body>
    <h1>Thank's Mr.<?php //echo $_COOKIE['username']; ?> For the intrest we will get back to u soon</h1>
    </body>
    </html> -->
    Last edited by cpradio; Jun 20, 2013 at 08:03. Reason: Added php tags


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •