kitufe cha...Wrap[PHP] tags cha JF | JamiiForums | The Home of Great Thinkers

Dismiss Notice
You are browsing this site as a guest. It takes 2 minutes to CREATE AN ACCOUNT and less than 1 minute to LOGIN

kitufe cha...Wrap[PHP] tags cha JF

Discussion in 'Tech, Gadgets & Science Forum' started by tovuti, Apr 27, 2012.

  1. tovuti

    tovuti Senior Member

    #1
    Apr 27, 2012
    Joined: Oct 29, 2009
    Messages: 160
    Likes Received: 0
    Trophy Points: 0
    Naomba kufahamishwa hicho kitufe hapo juu kiko unapoandika ujumbe jf, kina kazi gani na kinatumikaje?
     
  2. Given Edward

    Given Edward Verified User

    #2
    Apr 27, 2012
    Joined: Jan 11, 2011
    Messages: 852
    Likes Received: 3
    Trophy Points: 35
    Kitufe cha PHP [wrap] kinatumika kwa wale ambao wana deal na programming/coding kwa lugha ya PHP. The main reason ya kutumia hii feature ni kwamba kwenye PHP kuna lines za code ambazo ni muhimu kama mtu unataka maelekezo kuhusu tatizo. Mfano ninaweza nikaja na tatizo kama hivi:-

    Itabidi niweke codes hapa ili wataalamu waiangalie then watoe solution. Codes zangu nitaziweka hizi ;


    <?php
    $uname = ($_POST['username']);
    $pwd = ($_POST['nenosiri'])
    if ($uname != 'Invisible'){
    echo "You will be logged in, but not as Administrator";
    }
    else {
    echo "Welcome Invisible"
    }
    ?>

    Sasa kwenye code kama hiyo mtu yoyote anayejua PHP anaweza kukusaidia. Lakini inahitaji extra effort kusaidiwa na code haieleweki vizuri. Huo mstari wa 10 unaweza hata usionekane! Na hapo ndipo kitufe cha PHP [wrap] kinapotumika: kuonesha numbers na PHP syntaxes. Sasa nikitumia hicho kitufe code inaonekana hivi:-

    PHP:
    <?php
    $uname 
    = ($_POST['username']);
     
    $pwd = ($_POST['nenosiri']) 
    if (
    $uname != 'Invisible'){
    echo 
    "You will be logged in, but not as Administrator";
    }
    else {
    echo 
    "Welcome Invisible"
    }
    ?>
    Hapa sasa mtu anaweza akaniambia

    na mimi nikienda kwenye code yangu nitaweka semi colon then script itaendelea sawa. I hope nimeweza kusaidia kiasi.

    GIVENALITY
     
  3. Given Edward

    Given Edward Verified User

    #3
    Apr 27, 2012
    Joined: Jan 11, 2011
    Messages: 852
    Likes Received: 3
    Trophy Points: 35
    Hapo awali PHP button ilikuwa inaonesha numbers, sasa sijui why haioneshi.
     
  4. tovuti

    tovuti Senior Member

    #4
    Apr 27, 2012
    Joined: Oct 29, 2009
    Messages: 160
    Likes Received: 0
    Trophy Points: 0

    Asante sana GIVENALITY ubarikiwe
     
    Last edited by a moderator: Jan 4, 2016
Loading...