Topic: Search Form like this

Already searched, but i not have found what exactly i want.
I've the CuteNews 1.4.6.

I want put a long search form (inside the top.php), when you research something the results will appear on the home.php.
This is the Html code on the index.php and the code in the home.php. Like this example
http://thumbnails39.imagebam.com/20944/b52d90209435478.jpg http://thumbnails51.imagebam.com/20944/bb3e58209435480.jpg

<html>
<head>
<title>WEBSITE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> 

<body>
<div align="center">
<table width="1080"; height: 500px; border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody>
    <tr align="left" valign="top">
<td colspan="3"><span class="txtfin">
<? include("top.html"); ?>
</span></td>
</tr><tr>
<td style="width: 140px; background-color: #9F0000;vertical-align: top; text-align: left"><span class="txtfin">
<? include("left.php"); ?>
<?php
if(isset($_GET['p']) && file_exists($_GET['p'].'.php')){
    include($_GET['p'].'.php');
}
else{
    include('home.php');
}
?>
</span>
</td>
<td style="width: 300px; vertical-align: top; text-align:right">
<span class="txtfin">
<? include("right.php"); ?>
</span></td></tr>
    <tr align="center" valign="top"; "background-color: #000000">
<td colspan="3" style="background-color: #060D21"><span class="txtfin">
<? include("sub.html"); ?>
</span></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

<?php $number = "15"; 
include("cutenews/show_news.php"); 
?>

Re: Search Form like this

Nobody?  https://cutephp.com/forum/style_emoticons/default/huh.gif

3 (edited by 2012-09-08 20:54:22)

Re: Search Form like this

Posting wrong
Mod delete fears

4 (edited by 2012-09-09 09:47:21)

Re: Search Form like this

What is the code in  top.html ?

<? include("top.html"); ?>

Posting in the correct section will help you get more answers.

Re: Search Form like this

Inside top.php try adding the following code:

<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
<form action="home.php" method="get">
<input type="text" name="story" value="" style="width:90%" />
<input type="submit" name="go" value="search" style="width:10%" />
</form>
</div>

You should also try to customize the code above base on your needs. The code also asumes home.php can handle the search parameters.

Re: Search Form like this

How can i use a very easy search form like the example2.php?
I don't understand how to install.