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/day_7_ex_2.php
    Code:
    <?php
    
    echo '<h1>Hello ' . $_GET['Mariya'] . '!. Welcome to Fashion World. Design, Play, Win!  </h1>';

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

    Default

    Quote Originally Posted by annie View Post
    http://php.flashwebhost.com/annie/day_7_ex_2.php
    Code:
    <?php
    
    echo '<h1>Hello ' . $_GET['Mariya'] . '!. Welcome to Fashion World. Design, Play, Win!  </h1>';

    Day 7 Example 2 contains 2 parts. One HTML page and one PHP page. Read that part again. You need to use HTML page to pass information to this PHP page. Do Example 1 first, so you get the idea and the need for creating HTML page.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

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

    Default

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

    Code:
    <?php
    
    if (isset($_GET['email'])) {
    
    echo 'eye donation request has been received' ;
    
    }
    
    else {
    
    echo '
    
    <h1>Eye Donation</h1>
    
    <p>if you wish to donate  your eyes, enter your name.</p>
    
    <form action="eyedonation.php" method="GET">
    
    Enter Email Address : <input name="email" type="text">
    
    <button type="submit"> Subscribe </button>
    
    </form>
    
    ';}

  4. #4
    Join Date
    Sep 2003
    Location
    india
    Posts
    11,527

    Default

    http://php.flashwebhost.com/annie/health_tips.php
    Code:
    <?php
    if (isset($_GET['email'] )) {
    echo 'Subscribe to our free email updates!';
    } 
    else {
    echo '
    
    <h1> Helpful Tips.</h1>
    
    <p>Please enter your email address below and get Daily Health Tips </p>
    
    <form method="GET" action="health_tips.php">
    
    Enter Your Email Address: <input name= "email" type="text">
    <button type="submit"> Subscribe</botton>
    </form>
    ';
    }

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

    Default

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

    Code:
    <?php
    if (isset($_GET['email'] )) {
    echo 'poor charity request has been received' ;
    } 
    else {
    echo '
    
    <h1> Poor Charity.</h1>
    
    <p>Please enter your email address below and to help poor charity  </p>
    
    <form method="GET" action="poor_charity.php">
    
    Enter Your Email Address: <input name= "email" type="text">
    <button type="submit"> Subscribe</botton>
    </form>
    ';
    }

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

    Default

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

    Code:
    <?php
    $rollNo1 ='Student Name';
    $mark ='Student Mark';
    if (isset($_GET['rollNo1'] )) {
    echo  ' Name : ' . $rollNo1 . '<br>';
    
    echo  ' Mark : ' . $mark . '<br>';
    
    echo  '<hr> ';
    
    echo  ' result here - passed/failed';
    
    }
    else {
    echo '
    <h1>Medical Entrance Exam Result</h1>
    <p>Please enter roll No.</p>
    
    <form action="result.php" method="GET">
    
    Roll No : <input name="rollNo1" type="text">
    
    <button type="submit">submit </button>
    
    </form>
    ';}

  7. #7
    Join Date
    Nov 2004
    Location
    India
    Posts
    65

    Default

    http://php.flashwebhost.com/stefin/facebook_signin.php

    Code:
    <?php
    
    if (isset($_GET['signin'])) {
    
    echo 'THANK YOU FOR JOINING FACEBOOK';
    
    }
    
    else {
    
    echo '
    
    <html>
    <body>
    
    <h1>Welcome To Facebook</h1>
    
    <h2>Its Free And Always Will Be</h2>
      
    <form action="welcome.php" method="GET">
    
    Enter First Name : <input name="first name" type="text">
    
    </form>
    
    ';}
    
    {
    
    echo '
    
    <form action="welcome.php" method="GET">
    
    Enter Last Name : <input name="last name" type="text">
    
    
    
    </form>
    
    ';}
    
    {
    
    echo '
    
    <form action="welcome.php" method="GET">
    
    Enter Your Email : <input name="email" type="text">
    
    
    </form>
    
    ';}
    
    {
    
    echo '
    
    
    <form action="welcome.php" method="GET">
    
    Re-Enter Your Email : <input name="re-enter email" type="text">
    
    
    
    </form>
    
    ';}
    
    {
    
    echo '
    
    <form action="welcome.php" method="GET">
    
    Enter Your Password : <input name="password" type="text">
    
    
    
    </form>
    
    ';}
    
    {
    
    echo '
    
    <form action="welcome.php" method="GET">
    
    Enter Your Birthday : <input name="birthday" type="text">
    
    <h2><button type="SIGN UP"> SIGN UP </button></h2>
    
    </form>
    
    </body>
    </html>
    
    ';}
    Last edited by stefin; 05-16-2014 at 03:06 PM.

  8. #8
    Join Date
    Nov 2009
    Location
    kerala
    Posts
    19,076

    Default

    http://php.flashwebhost.com/sibichan/Day-7/result.php

    PHP Code:

    <?php
    $rollNo1 
    ='Student Name';
    $mark ='Student Mark';
    if (isset(
    $_GET['rollNo1'] )) {
    echo  
    ' Name : ' $rollNo1 '<br>';

    echo  
    ' Mark : ' $mark '<br>';

    echo  
    '<hr> ';

    echo  
    ' result here - passed/failed';

    }
    else {
    echo 
    '
    <h1>SSLC Exam Result</h1>
    <p>Please enter roll No.</p>

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

    Roll No : <input name="rollNo1" type="text">

    <button type="submit">submit </button>

    </form>
    '
    ;}

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
  •