I have index.php,search.php and read.php files. I want to locate in index.php, other files. index.php codes: ........................................................................ ........................................................................ <form method="POST" action="search.php" > <input type="text" name="word" class="aramakutusu "/> <input type="submit" value="Ara" class="aramabutonu "/> </form> ........................................................................ ........................................................................ I have tried that: <?php switch(word) { case word: include('search.php'); break; default: include('read.php'); } ?> Code (markup): I want to locate in index.php read.php and search.php.How I will make it?
[CODE]<?php switch($_POST['kelime']) { case 'kelime': include('search.php'); break; default: include('read.php'); } Code (markup): I have'nt a problem syntax that like it. I want to appear in index.php the file named "search.php" . <form action=''search.php"........>
I solution the problem. <?php switch($_GET['page']) { case 1:include("search.php");break; case 2:include("read.php");break; default:include("content.php");break; } ?> Code (markup): action="index.php?page=1"