提问者:小点点

如何在PHP中链接页面[关闭]


这是我的密码

<section id="portfolio" class="two">
                    <div class="container">

                        <header>
                            <h2>Société</h2>
                        </header>
                        <div >
                         <input type="text" name="name" placeholder="Rechercher" height='100px' />
            <?php
         while ( $row3=mysql_fetch_row($resultat3) )
         echo "<tr><td align=\"center\"></td><td align=\"center\"></td> <input class="Ajouter"
   type="button"
    
   value="Ajouter"  style ="width:150px" ></td></tr>"
    <a href="index.php">ajouter</a>
   ;

这是我的结果:

我想删除“Ajouter and menu”,当我单击Ajouter时,它将引用php.index


共1个答案

匿名用户

像这样:

<section id="portfolio" class="two">
    <div class="container">
      <header>
        <h2>Société</h2>
      </header>
     <div>
     <input type="text" name="name" placeholder="Rechercher" height='100px' />
    <?php
         while ( $row3=mysql_fetch_row($resultat3) )
         echo '<tr><td align="center"></td><td align="center"></td> <input class="Ajouter" type="button" value="Ajouter"  style ="width:150px"  onclick="window.location.href=\'index.php\'"/></td></tr>';
    ?>
   </div>