Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: Want to Learn Php..?? Here is the Way...

  1. #21
    Join Date
    Jun 2008
    Posts
    342

    Default A journey leads to php....

    PROCESSING FORMS

    What is one thing almost everyone wants to do with their website? Have a contact form. And, it isn’t as difficult as you’d think. We’re going to use the PHP mail() command to make one.

    Make an HTML form with Name, Email and Message fields. Take the code below and place it in a PHP file to use as your action.

    <?php
    mail("[email protected]", "Form Feedback", " // your address and subject
    Name: $name
    Email: $email
    Message: $message
    ", "From: $email");
    // Display results
    echo("
    <html>
    Name: $name
    Email: $email
    Message: $message
    </html>
    ");
    ?>


    Section Two Overview

    In this section, we covered some more advanced features of PHP. Not for the timid, but not impossible to grasp!

    IF - Do something if something is true.
    ELSE - Do something else if it isn’t
    ELSEIF - Add more choices to IF
    SWITCH - Use this if you have a lot of ElseIf’s
    ARRAY - One variable, many values
    ASSOCIATIVE ARRAY - One variable, even more values
    LOOPS - For, While, For Each - A way to repeat code
    FUNCTIONS - Turn a big code chunk into a small one
    SESSIONS - Carry unique data from page to page
    COOKIES - Store session data on your viewer’s computer
    FORM PROCESSING - Process web forms, such as a mailer


    QUIZ

    1. What are the 3 ways to comment code in PHP?
    2. ELSEIF cannot be used without __
    3. What are Cookies used for in PHP?

  2. #22
    Join Date
    Apr 2009
    Posts
    1

    Default

    thanks man

  3. #23
    Join Date
    Oct 2005
    Location
    Ernakulam
    Posts
    1

    Default

    thanx a lot for this tut.!

  4. #24
    Join Date
    May 2009
    Posts
    3

    Default

    WOW!
    this is a good One. I've bookmarked it for future reference. this time I'll concentrate on my web page designing. CSS and HTML
    Then back here when I'm ready.

    Thanks a lot

  5. #25
    Join Date
    Jun 2009
    Posts
    5

    Cool

    ;)Thank you for TUT

  6. #26
    Join Date
    Aug 2009
    Posts
    4

    Default

    this is free phpnuk hosting.free and easy make your forum:
    www.greatnuk.com

  7. #27
    Join Date
    Feb 2010
    Posts
    1

    Default

    i am a beginer so i agree with your view and follow suit

  8. #28
    Join Date
    Mar 2010
    Posts
    5

    Default

    waw thanks goooooooooooood

  9. #29
    Join Date
    Jul 2010
    Posts
    5

    Thumbs up

    Tnx !!!! :)

  10. #30
    Join Date
    Apr 2011
    Posts
    10

    Default

    How can you remember all these sentences? I can't remember all these strings and I must have them on a side on a letter written. has someone have any idea how to know everycode? I know one thing:

    <?php
    phpinfo();
    ?>

    or:

    <?php
    include(file.php);
    ?>

Page 3 of 4 FirstFirst 1234 LastLast

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
  •