Page 1 of 2 12 LastLast
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
    Posts
    3,040

    Default

    Quote Originally Posted by stefin View Post
    http://php.flashwebhost.com/stefin/facebook_signup.php

    Code:
     <?php
    
    
    if (isset($_GET['submit'])) {
        echo '<h1>THANK YOU FOR JOINING Facebook.</h1>';
        echo '<br>';
        echo '<pre>';
        print_r($_GET);
        echo '</pre>';
    } 
    else {
        echo '
        <html>
        <body>
    
        <h1>Welcome To Facebook.</h1>
    
        <p>Its Free And Always Will Be</p>
    
        <form action="" method="GET
    
        Enter First Name : <input name="first name" type="text"><br>
        Enter Last Name : <input name="last name" type="text"><br>
        Enter Your Email : <input name="email" type="text"><br>
        Re-Enter Your Email : <input name="re-enter email" type="text"><br>
        Enter Your Password : <input name="password" type="text"><br>
        <button type="submit" name="submit"> Submit!</button>
    
        </form>
        </body>
        </html>
        '; }

    Good work on updating facebook signup script.

    Edit:

    Just found a mistake

    Code:
    <form action="" method="GET
    This should be

    Code:
    <form action="" method="GET">
    Anyway browsers are intelligent to auto correct such errors, script works as expected.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  2. #2
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    http://php.flashwebhost.com/sherly/school_website.php

    Code:
    <?php
    
    if (isset($_GET['neenalaisa'])) {
        echo '<h1>Hi, ' . $_GET['neenalaisa'] . '! Welcome to our school web site.</h1>';
    } else {
    
    echo '
    <html>
    <body>
    
    <h1>Welcome to our school web site.</h1>
    
    <p>Please enter you name below and click that button to see our school web site.</p>
    
    <form method="GET" action="school_website.php">
    
         Enter Your Name: <input name="neenalaisa" type="text">
        <button type="submit">Enter School Web Site</button>
    </form>
    
    </body>
    </html>';
    
    }

  3. #3
    Join Date
    Feb 2007
    Posts
    26,214

    Default

    DAY 7 PHP PROGRAMMING

    http://php.flashwebhost.com/tom/day_7_ex_2.html

    Code:
    <html>
    <body>
    
    
    <h1>Welcome to Online Booking Center</h1>
    
    
    <p>Please enter your email id below to book your show.</p>
    
    
    <form method="GET" action="http://www.catchmyseat.com">
        Enter Your Email ID: <input name="email" type="text">
        <button type="submit">Book Now</button>
    </form>
    
    
    </body>
    </html>
    http://php.flashwebhost.com/tom/day_7_ex_2.php

    Code:
    <?php
    
    
    echo '<h1>Hello, ' . $_GET['email'] . ' Wecome to Online Booking Center</h1>';

  4. #4
    Join Date
    Feb 2007
    Posts
    26,214

    Default

    DAY 7 PHP PROGRAMMING

    http://php.flashwebhost.com/tom/day_7_ex_3.php

    Code:
    <?php
    
    
    if (isset($GET['email'])) {
    
    
    echo 'Hello, ' . $_GET['email'] . ' Welcome to Online Booking Center';
    } else {
    
    
    echo'
    
    
    
    
    <html>
    <body>
    
    
    <h1>Welcome to Online Booking Center</h1>
    
    
    <p>Please enter your email id below to book your show.</p>
    
    
    <form method="GET" action="day_7_ex_2.php">
        Enter Your Email ID: <input name="email" type="text">
        <button type="submit">Book Now</button>
    </form>
    
    
    </body>
    </html>';
    
    
    }

  5. #5
    Join Date
    Apr 2005
    Posts
    46,704

    Default

    Code:
     <?php
    
    if (isset($_GET['blood_group'])) {
        echo '<h1>Your Blood Group is , ' . $_GET['blood_group'] . '! Welcome to Rotary Blood Bank.</h1>';
    } else {
    
    echo '
    <html>
    <body>
    
    <h1>Welcome to Blood Donation Group.</h1>
    
    <p>Please enter you name  and blood group below and click that button to enter website.</p>
    
    <form method="GET" action="login.php">
        Enter Your Name: <input name="name" type="text">  <br> <br>
        Enter Your Blood Gourp : <input name="blood_group" type="text">
        <button type="submit">Enter Web Site</button>
    </form>
    
    </body>
    </html>';
    
    }
    http://php.flashwebhost.com/mini/login.php

  6. #6
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Quote Originally Posted by minisoji View Post
    Code:
     <?php
    
    if (isset($_GET['blood_group'])) {
        echo '<h1>Your Blood Group is , ' . $_GET['blood_group'] . '! Welcome to Rotary Blood Bank.</h1>';
    } else {
    
    echo '
    <html>
    <body>
    
    <h1>Welcome to Blood Donation Group.</h1>
    
    <p>Please enter you name  and blood group below and click that button to enter website.</p>
    
    <form method="GET" action="login.php">
        Enter Your Name: <input name="name" type="text">  <br> <br>
        Enter Your Blood Gourp : <input name="blood_group" type="text">
        <button type="submit">Enter Web Site</button>
    </form>
    
    </body>
    </html>';
    
    }
    http://php.flashwebhost.com/mini/login.php

    Why asked name... if you have no use for it ?

    Find

    Code:
        echo '<h1>Your Blood Group is , ' . $_GET['blood_group'] . '! Welcome to Rotary Blood Bank.</h1>';
    Replace with

    Code:
        echo '<h1>Hello ' . $_GET['name'] . '. Your Blood Group is , ' . $_GET['blood_group'] . '! Welcome to Rotary Blood Bank.</h1>';
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  7. #7
    Join Date
    Apr 2005
    Posts
    46,704

    Default

    code corrected. http://php.flashwebhost.com/mini/login_1.php

    Code:
     <?php
    
    if (isset($_GET['blood_group'])) {
         echo '<h1> Hello ' . $_GET['name'] . ' . Your Blood Group is , ' .  $_GET['blood_group'] . '! Welcome to Rotary Blood Bank.</h1>' ;
    } else {
    
    echo '
    <html>
    <body>
    
    <h1>Welcome to Blood Donation Group.</h1>
    
    <p>Please enter you name  and blood group below and click that button to enter website.</p>
    
    <form method="GET" action="login_1.php">
        Enter Your Name: <input name="name" type="text">  <br> <br>
        Enter Your Blood Gourp : <input name="blood_group" type="text">
        <button type="submit">Enter Web Site</button>
    </form>
    
    </body>
    </html>';
    
    }

  8. #8
    Join Date
    Oct 2003
    Location
    Kochi, Kerala, India
    Posts
    21,389

    Default

    http://php.flashwebhost.com/vineesh/...ay_7_ex_1.html

    PHP Code:
    <html>
    <
    body>

    <
    h1>Welcome to GovtV.V.H.S.SKodamthuruth</h1>

    <
    form method="GET" action="student.php">

    Enter Student Name: <input name="student" type="text"><br />
    Select your class:
    <
    select name="class">
    <
    option>1</option>
    <
    option>2</option>
    <
    option>3</option>
    <
    option>4</option>
    <
    option>5</option>
    <
    option>6</option>
    <
    option>7</option>
    <
    option>8</option>
    <
    option>9</option>
    <
    option>10</option>
    <
    option>11</option>
    <
    option>12</option>
    </
    select> <br />
    Enter your division<input name="division" type="text"> <br />
    <
    button type="submit">Click here!</button>
    <
    button type="reset">Reset</button>

    </
    body>
    </
    html
    http://php.flashwebhost.com/vineesh/day7/student.php

    PHP Code:
    <?php

    $schoolName 
    'govt. v.v.h.s.s, kodamthuruth'

    echo 
    '<h1><font color=FB2E0A><u><I>Student Information</I></u></font></h1>';

    echo 
    'Hello ' '<font color=D10A0A><b>' $_GET['student'] . '</font></b>' '!.  You are studying at ' '<font color=099A3C><b>' strtoupper($schoolName) . '</b></font>' ' and You are in ' '<font color=071486><b>' $_GET['class'] . '</font></b>' 'th standard ' '<font color=071486><b>' $_GET['division'] . '</font></b>' ' division.';

  9. #9
    Join Date
    Oct 2003
    Location
    Kochi, Kerala, India
    Posts
    21,389

    Default

    http://php.flashwebhost.com/vineesh/day7/day_7_ex_4.php

    PHP Code:
    <?php

    if (isset($_GET['name'])) {
    echo 
    ucwords('<font color="red"><b>Hello ' $_GET[name] . '. </b></font>' '<font color="red"><b> your informations successfully submitted.</b></font> ');
    } else {
    echo 
    '

    <html>
    <body>

    <h1 align=center>Enter your family members details</h1>

    <form method="GET" action="day_7_ex_4.php">

    <table width=50% align=center border=0>
    <tr>
    <td>Enter Your name: </td>
    <td><input type="text" name="name"></td>
    </tr>

    <tr>
    <td>Enter Your father name:</td>
    <td> <input type="text" name="fname"></td>
    </tr>

    <tr>
    <td>Enter Your mother name: </td>
    <td><input type="text" name="mname"></td>
    </tr>

    <tr>
    <td>Enter Your email: </td>
    <td><input type="text" name="email"></td>
    </tr>

    <tr>
    <td>Enter Your Address: </td>
    <td> <textarea type="text" name="address"></textarea></td>
    </tr>

    <tr>
    <td>&nbsp;</td>
    <td><button type="submit">Submit</button> &nbsp; <button type="reset">Reset</button></td>
    </tr>

    </table>

    </form>

    </body>
    </html>'
    ;
    }

  10. #10
    Join Date
    Jan 2008
    Location
    india,kerala-god's own country
    Posts
    14,007

    Default

    DAY 7 PHP PROGRAMMING

    http://php.flashwebhost.com/ramesh/d...et_method1.php

    PHP Code:
    <?php
      
      
    if (isset($_GET['login'])) {
        echo 
    '<h1>Login Success!!</h1>';
        echo 
    '<br>';
        echo 
    '<pre>';
        
    print_r($_GET);
        echo 
    '</pre>';

    else {
        echo 
    '

    <style>
    body {    
        background: #464646;
        font: 14px;
        font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    }
    .form {
        width: 250px;
        height:230px;
        background: #fff;
        color: #777;    
    }


    .formtitle {
        padding: 10px;
        line-height: 16px;
        font-size: 13px;    
        color: #000;
        font-weight: bold;
        border-bottom: 1px solid #eb8d19;
        width: 230px;
        }


    .inputtextbox {
        width: 200px;
        margin-bottom: 10px;
        margin: 20px;
        overflow: hidden;
    }
    .inputtext {    
        line-height: 18px;    
        width: 120px;
    }

    .buttons {
        background: #f1f1f1;
        border-top: 1px solid #ddd;
        padding: 15px;
        height: 34px;
    }
    </style>
    <html>
    <body>
    <form class="form" method="GET" action="loginsuccess.php">

                <div class="formtitle">Login to your account</div>

                <div class="inputtextbox">
                    <div class="inputtext">Username: </div>
                    <div class="inputcontent">

                        <input type="text" />

                    </div>
                </div>

                <div class="inputtextbox">
                    <div class="inputtext">Password: </div>
                    <div class="inputcontent">
                        <input type="password" />
                        <br/>

                    </div>
                </div>

                <div class="buttons">

                    <input type="submit" value="Login" />

                    <input type="submit" value="Cancel" />

                </div>

            </form>

            </body>
    </html>

    '
    ; }





    http://php.flashwebhost.com/ramesh/d...ginsuccess.php

    PHP Code:
    <?php

    echo '<font color=green><h1>Login Success.........................<h1></font>';


    echo 
    '<br>
    <html>
    <body>
    <div> 
    <form action="get_method1.php">
    <input type="submit" value="Logout" />
    </form>
    </div>
    </body>
    </html>'

Page 1 of 2 12 LastLast

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
  •