Help for php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seden12
    New Member
    • Mar 2007
    • 2

    Help for php

    I can't find out where codes have mistakes.I'm happy if you find out mistakes.They have written to learn searching in a site.For this what can be do anyting?Thank you for help.

    ariyor.html
    <form action=ariyoruz .php method="POST">
    aranacak kelime : <input type="text" name=ara size=10><br>
    <input type="submit" name=gonder value="ara" size=10><br>
    </form>


    ariyoruz.php
    <?
    $arama=$_POST["ara"];
    $b1=array("okul ","öğrenci","ki tap");
    $b2=array("futb ol","basketbol" ,"voleybol") ;
    $b3=array("resi m","müzik");

    foreach($b1 as $kelime1)
    {
    while($kelime1= =$arama):

    echo "<a href="b3 bölüm">b3</a>";
    }


    foreach($b2 as $kelime2)
    {
    while($kelime2= =$arama):
    echo "<a href="b3 bölüm">b3</a>";
    }

    foreach($b3 as $kelime3)
    {
    while($kelime3= =$arama):

    echo "<a href="b3 bölüm">b3</a>";
    }
    ?>
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    The first mistake you made is NOT READING the Posting Guidelines at the top of this forum!

    Especially the part about enclosing code within code or php tags!


    We are not in the business of reviewing code. We are here to help when you have problems. So state your problem and we will see what can be done to help.

    Ronald :cool:

    Comment

    Working...