1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help session couldnt start ?

Discussion in 'Coding, Programming' started by zanlii07, Mar 17, 2016.

  1. zanlii07

    zanlii07 Grasshopper Established

    Mga master ? ive created a website then my session couldnt start? Hindi po sya gumagana
    pa help po pls. thankyou !

    Here's mycode:

    <?php session_start();?>
    <BODY bgcolor="rgb(67,87,51)">

    <table border="1" width="100%">


    <form action="<?php echo $_SERVER["PHP_SELF"];?>"
    method="post"> <BR>
    <input name="user" type="text" size="10"/>
    <br> <BR>
    <input name="password" type="password" size="10"/>
    <br> <BR>

    <input type="submit" name="log-submit" value="logsubmit" size="20">
    <input type="submit" name="signup" value="signsubmit"size="20">

    $query = 'select password from customers where family= "'.$_POST['user'].'"';

    if($_POST['password']==$row['password'] && $_POST['password']!= '' && $_POST['user']!=''){

    //echo $url;
    echo "validation has been done!";
    $query4 = 'select customer_id from customers where family= "'.$_POST['user'].'"';

    $_SESSION['customer']= $logrow["customer_id"] ;
    $_SESSION['user']= $logrow["user"] ;
    <a href="reservation.php?custID=<?php echo $logrow["customer_id"] ;?> " > if you want to continue please click here! </a>

    else if ($_POST['password']!=$row['password']) {

    echo "invalid password, try again";
    <a href="signup.php"><p><b>if you are new,you can create your account right now </b></p></a>


    // echo("HHHHHHHHHHHH:");
    <td> <img src="5.jpg" style="position:relative; width="100" height="600" left:0px;
    top:100px;"> </td>

  2. Orange_

    Orange_ Honorary Poster Established

    Anong Problema dun sa session? bakit gumamit kapa ng session e iisang page lang naman pag pinag sendan mo ng query mo base dun sa form action mo? (y)
Tags / Keywords: