<?php
$s_generator = $_POST['generator'];
$s_record = $_POST['record'];
if(isset($s_generator))
{
include '1.tpl';
}
else
if(isset($s_record))
{
include '2.tpl';
}
else
{
include '0.tpl';
}
?>
<form id="form1" method="post" action="">
<input type="text" name="generator" />
</form>
<form id="form2" method="post" action="">
<input type="text" name="record" />
</form>
<div class=ccd><a href='javascript:void' OnClick="document.getElementById('form1').submit(); return false;" class=ddott>Поиск</a></div>
<div class=ccd><a href='javascript:void' OnClick="document.getElementById('form2').submit(); return false;" class=ddott>Поиск</a></div>
хотя бы чтобы была одна форма или лучше вообще убрать ее. спасибо!