Results 1 to 10 of 40

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Feb 2005
    Location
    India
    Posts
    11,004

    Default

    Quote Originally Posted by Austinwhite View Post
    http://php.flashwebhost.com/austin/day7.php

    I need help with this code!!!
    mine not working properly
    There is s a spelling mistake in the following line.

    HTML Code:
    Enter you name : <input n="name" type="text"> // input tag is 'name', not 'n'
    Change it to

    HTML Code:
    Enter you name : <input name="name" type="text">
    See the corrected script below.

    PHP Code:
    <?php
        
    if (isset ($_GET['name']) ) {
            echo 
    'i got the name';
            echo 
    'Hi ' $_GET['name'] . ' Whats up buddy!';
    }

    else {

        echo
    '
        <html>
        <body>
        <p> welcome to my website! </P>'
    ;

        echo 
    'Whats you name?';

        echo 
    '<form method="GET" action="day7.php">
         Enter you name : <input name="name" type="text">
         <button type="submit">Go</botton>
         </form>
        </body>
        </html>'
    ;
    }
    Last edited by melbin; 05-19-2014 at 09:23 AM. Reason: spelling mistake
    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
  •