Jump to content

PHP_CHILD

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by PHP_CHILD

  1. ok so i want to set a session value after the submit button is clicked... how do i tat... sry am a newbiee....
  2. i want to use unique session values, set according to if condition. To use in same page. Like this <?php session_start(); ?> <form action="nn.php" method="post"> Username: <input type="text" name="lname" /><br><br> Password: <input type="password" name="password" /><br><br> <input type="submit" name="submit"/> </form> <?php if(isset($_POST['submit']) && $_POST['submit']) { echo "ok"; $_SESSION['a']="same"; } echo $_SESSION['a']; ?> But each time i load the page, i get the same session values even before i click submit button.. Any Help greatly appreciated.. Thanks in advances
  3. am using a live server to execute the follwing code. but each time the page loads i get the previous typed value of email. <html><body> <form action="index1.php" method="post"> <?php include('connect.php');?> //has only db connection.nothing else. Enter your email id <input type="text" name="email"> <input type="submit" name="submit" value="submit"> </form> <?php echo $_POST['email']; ?> </body> </html> It works fine in local xampp server. Should i configure somethin in my php.ini of live server?? Any help is highly appreciated...
  4. It's been 2 weeks in have started off with php. Things learnt: Forms with validation, Login sessions. Now, am trying to build inventory system. Like a e-commerce websites would do.It would be helpful if u could tell how the design of the system should be? The table structures? And pls throws some light on security basics?? Many thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.