CuteNews

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Search Form like this
veeto
post Sep 6 2012, 12:12 PM
Post #1


Newbie
*

Group: Members
Posts: 49
Joined: 17-November 08
Member No.: 28,842



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

CODE
<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><br></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>


CODE
<?php $number = "15";
include("cutenews/show_news.php");
?>
Go to the top of the page
 
+Quote Post
veeto
post Sep 8 2012, 04:55 PM
Post #2


Newbie
*

Group: Members
Posts: 49
Joined: 17-November 08
Member No.: 28,842



Nobody? huh.gif
Go to the top of the page
 
+Quote Post
kaspersky
post Sep 8 2012, 08:48 PM
Post #3


Newbie
*

Group: Members
Posts: 1
Joined: 8-September 12
Member No.: 79,768



Posting wrong
Mod delete fears

This post has been edited by kaspersky: Sep 8 2012, 08:54 PM
Go to the top of the page
 
+Quote Post
Gary
post Sep 9 2012, 09:44 AM
Post #4


Advanced Member
***

Group: Members
Posts: 169
Joined: 5-July 04
From: On my fat arse in UK
Member No.: 102



What is the code in top.html ?

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


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

This post has been edited by Gary: Sep 9 2012, 09:47 AM
Go to the top of the page
 
+Quote Post
RustyThePanda
post Sep 22 2012, 08:01 PM
Post #5


Newbie
*

Group: Members
Posts: 1
Joined: 21-September 12
Member No.: 80,244



Inside top.php try adding the following code:

CODE

<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>


You should also try to customize the code above base on your needs. The code also asumes home.php can handle the search parameters.
Go to the top of the page
 
+Quote Post
veeto
post Sep 27 2012, 08:50 AM
Post #6


Newbie
*

Group: Members
Posts: 49
Joined: 17-November 08
Member No.: 28,842



How can i use a very easy search form like the example2.php?
I don't understand how to install.
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 19th May 2013 - 01:24 AM