Jump to content


Photo

Making a search bar like php freak's


  • Please log in to reply
4 replies to this topic

#1 hmmm

hmmm
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 18 July 2005 - 09:06 AM

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>




#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 18 July 2005 - 02:05 PM

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.

#3 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 18 July 2005 - 11:13 PM

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.

View Post


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

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#4 hmmm

hmmm
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 19 July 2005 - 09:29 AM

Reply entered in error please remove

#5 hmmm

hmmm
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 19 July 2005 - 09:40 AM

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users