Jump to content

Making a search bar like php freak's


Recommended Posts

I am trying to set up a search box similar to the one on PHPFreaks at the top of every page.

Being new not only to DW and php I am out of my debt with this one. The problem that I have is that although the search box appears in the table that I have selected for it, it has increased in height when viewed by my browser. So it looks like there is another blank table row underneath it. I have tried resizing my table but with no luck. Yet in DW it still looks like it is only taking up one row. If anybody could point me in the right direction I would be very thankful as I have been banging my head against the wall for the last 3 days on this one.

 

The form is called from my index.php by <?php include ("filesearch.php")?>

 

filesearch.php

 

<table width="700" height="13" border="0" cellpadding="0" cellspacing="3">

<tr>

<td valign="left"> <form id="topform" method="get" action="/tsep/log.php">

<label for="q"></label>

<label for="label"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Search

for</font></label> <input id="label" type="text" name="q" value="">

<input name="submit" type="image" title="Go" src="/images/go.gif" alt="Go" align="middle" width="20" height="20">

<input type="hidden" name="$s" value="0" /> <input type="hidden" name="$e" value="10" />

<input type="hidden" name="searchpagelocation" value="/tsep/search.php" />

</form></td>

</tr>

</table>

 

 

 

Link to comment
Share on other sites

do yourself a favour and learn html, dreamweaver will do you no favours if your learning. one things you will come to realise is that different browsers handle things in different ways, and that you will really need an understanding of the underlying code. sure dreamweaver can get you off to a quick start, but without html knowledge, these kinds of problems are going to pop up all the time.

Link to comment
Share on other sites

do yourself a favour and learn html, dreamweaver will do you no favours if your learning. one things you will come to realise is that different browsers handle things in different ways, and that you will really need an understanding of the underlying code. sure dreamweaver can get you off to a quick start, but without html knowledge, these kinds of problems are going to pop up all the time.

254626[/snapback]

 

i agree and disagree, thorpe. dreamweaver makes it VERY easy to avoid underlying code, and just get on with drawing pretty tables and plonking text and graphics all over the place, but it's a very good way to get off to a very fast start and can even, to an extent, be a good learning tool.

 

even with something so idiot-proof as dreamweaver (hence why i use it!!!), it's still very unpredictable with the results it spouts out. don't trust the WYSIWYG capabilities of it at all, and try, as thorpe sad, to get a bit deeper into understanding HTML. tables are very funny things, as is HTML, and can be unpredictable at the best of times.

use dreamweaver as kinda like a notepad for your ideas instead of a serious WYSIWYG tool.

 

i don't necessarily mean to rehash what has just been said, but just a view from another dreamweaver user who had (and still has) these problems occasionally.

 

cheers

 

Link to comment
Share on other sites

Thank you for your thoughts and comments. Yes I do agree that DW is not the be all and end all but it is fast to get a basic page set up and take it from there with the coding. It's not perfect but allows the outline of a site to be made quickly. Having said that I will be learning html and php. Thank you for the links thorpe.

Regarding the original question, the problem lay with the form, and not this time DW. All has been sorted now.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.