Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    PHP Anfängerkurs #1 [GERMAN]


    owned'
     Share

    Recommended Posts

    Ich kommentiere die einzelnen PHP-Passagen. Ich gehe davon aus, dass ihr HTML könnt, deswegen spar ich mir dort die Kommentare.

     

    Dateiname: 01_formulare.php

    <?php
    if(isset($_POST['[color="#008000"]f_submit[/color]'])) {  // Prüfen, ob das Formular abgesendet wurde
    ?>
    <p>Hallo
    <?php echo $_POST['[color="#FF0000"]name[/color]']; ?> // Ausgabe des im Formular eingetragenen Namens
    </p>
    <?php
    } else {  // Jetzt folgt die Answeisung, was er tun soll, wenn kein Formular abgesendet wurde
    ?>
    <form method='post' action='01_formulare.php'>
    <input type='text' name='[color="#FF0000"]name[/color]'>
    <input type='submit' name='[color="#008000"]f_submit[/color]' value='Absenden'>
    </form>
    <?php
    }
    ?>

     

    Nun erhälst du, wenn du die Datei aufrufst, ein Formular. Gib dort irgendetwas ein und drücke auf den Absenden-Button. Nun sollte folgendes erscheinen:

    Hallo [TEXT]

    Statt [TEXT] natürlich das, was du eingegeben hast.

    Thanks pls. O.o

     

    Sollte etwas nicht funktionieren, einfach nachfragen.

    Edited by meijör
    Link to comment
    Share on other sites

    • 1 month later...
    • 3 weeks later...
    Ich kommentiere die einzelnen PHP-Passagen. Ich gehe davon aus, dass ihr HTML könnt, deswegen spar ich mir dort die Kommentare.

     

    Dateiname: 01_formulare.php

     

    [ Hidden part. View original post. ]

    Thanks pls. O.o

     

    Sollte etwas nicht funktionieren, einfach nachfragen.

    Link to comment
    Share on other sites

    • 3 weeks later...
    • 1 month later...
    • 4 weeks later...
    • 2 weeks later...
    this one is bullshit.

    thx. any reasons?

    Edited by owned'
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...