Results 1 to 10 of 40

Thread: Day 7 - Talk To Server - Become PHP Expert in 30 days

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2003
    Location
    india
    Posts
    11,527

    Default

    http://php.flashwebhost.com/annie/login.php

    Code:
     <?php
    
    if (isset($_GET['login'])) {
        echo '<h1> Login Successful!!</h1>';
        echo '<br>';
        echo '<pre>';
        print_r($_GET);
        echo '</pre>';
    } 
    else {
        echo '
    <html>
        <body>
    
        <h1>Customer Login</h1>
        <p>All the Power. Even more convenience</p>
       <form method="GET" action="login.php">
        Enter Username : <input name="username" type="text"><br>
        Enter Password : <input name="password" type="text"><br>
         <button type="submit" name="login"> LOG IN!</button>
        </form>
        </body>
        </html>
        '; }

  2. #2
    Join Date
    Feb 2005
    Location
    India
    Posts
    11,004

    Default


    http://php.flashwebhost.com/melbin/php_get_ex_1.php


    PHP Code:
    <?php
      
    if( $_GET["name"] || $_GET["age"] )
      {
         echo 
    "Welcome "strtoupper($_GET['name']) . "<br />";
         echo 
    "You are <b>"$_GET['age']. "</b> years old.";
         exit();
      }
    ?>

    <html>
    <body>
      <br>
      <form action="<?php $_PHP_SELF ?>" method="GET">
      Name: <input type="text" name="name" /><br>
      Age: <input type="text" name="age" /><br>
      <input type="submit" />
      </form>
    </body>
    </html>
    VIDEO WORLD : LATEST HOLLYWOOD || BOLLYWOOD || SOUTH INDIAN VIDEOS || TRAILERS

Tags for this Thread

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
  •