Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-12-2004, 01:43 PM   #1 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
What is the code for this form

I want a form that can do a search on either my search engine or my directory. I believe one uses post and the other get as the form code so is this a challenge or not. Is it possible?

I want something similar to the search thing on www.tiscali.co.uk
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-12-2004, 02:04 PM   #2 (permalink)
Member
 
JuggoPop's Avatar
 
Join Date: 10-09-03
Posts: 9,594
iTrader: 0 / 0%
Latest Blog:
None

JuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest order
you probably want something running from your domain more than this ... but what about google's free site search options? they are customizable... and I think could endup looking like that.
JuggoPop is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-12-2004, 02:06 PM   #3 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
No I got that. Sorry mistake up there. I have a search engine that runs of Google and I have a search on my directory. I want a search form on my main site that in the same text entry box can do a search of either one or the other based on a drop down selection box.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-12-2004, 02:20 PM   #4 (permalink)
Member
 
JuggoPop's Avatar
 
Join Date: 10-09-03
Posts: 9,594
iTrader: 0 / 0%
Latest Blog:
None

JuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest order
oh... gotcha... I thought you didn't have any search code yet but wanted to be able to search your site or the web... which on "google free" they have a customizable search that will do just that...

maybe someone else will have a better answer.
JuggoPop is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-12-2004, 02:25 PM   #5 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
Does your site search use a query string appended to the URL for its searches? EG www . domain . com/search.cgi?term=whatever

If so, a fairly simple javascript function would do this. If you let me know the URL I might be able to whip something up (no promises).
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-12-2004, 02:42 PM   #6 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
I have got the two searches on my site at the moment but they are seperate. www.blueuniverse.co.uk

The form for my search engine is

<form method="get" action="http://www.blueuniverse.co.uk/search/index.php">
<input name="REQ" type="text" size="20" />
<input type="submit" name="submit" value="Web Search" />
</form>

The form for my directory is

<form method="get" action="http://www.blueuniverse.co.uk/dir/search.php">
<input name="q" type="text" size="20" />
<input type="submit" name="submitsearch" value="Directory Search" />
</form>
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-12-2004, 03:26 PM   #7 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
I have to go out for a few hours but I'll try to have a look at this when I get back (unless someone else beats me to it).
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-12-2004, 03:50 PM   #8 (permalink)
sim
Banned
 
Join Date: 01-23-04
Posts: 2,367
iTrader: 0 / 0%
Latest Blog:
None

sim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nicesim is just really nice
use a php script, use the POST then redirect it to either of those url's
sim is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2004, 03:18 AM   #9 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
If you're happy to use javascript, try this....

Put the following code in your head:
[code:1:2c0b3867d4]<script language="JavaScript">
function dosearch() {
var sf=document.searchform;
var srchstring = escape(sf.searchterms.value);
var srcheng = sf.sengines.options[sf.sengines.selectedIndex].val ue;
var websearch1 = "http://www.blueuniverse.co.uk/search/index.php?REQ=";
var websearch2 = "&submit=Web+Search";
var dirsearch1 = "http://www.blueuniverse.co.uk/dir/search.php?q=";
var dirsearch2 = "&submitsearch=Directory+Search";
if (srcheng == "websearch") {
var submitto = websearch1 + srchstring + websearch2;
} else {
var submitto = dirsearch1 + srchstring + dirsearch2;
}
window.location.href = submitto;
return false;
}
</script>[/code:1:2c0b3867d4]
Then use this for your form:[code:1:2c0b3867d4]<form name="searchform" onSubmit="return dosearch();">
Search:
<select name="sengines">
<option value="websearch" selected>Web Search</option>
<option value="dirsearch">Directory Search</option>
</select>
For:
<input type="text" name="searchterms">
<input type="submit" name="SearchSubmit" value="Search">
</form>
[/code:1:2c0b3867d4]
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2004, 09:33 AM   #10 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Thanks dave.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2004, 03:09 PM   #11 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Now when adding this I have come across this problem. (Related to forms in general). For some reason it is throwing things off.

The code for the form bit is

[code:1:9c3e51bbfd]
<td colspan="6" align="center" valign="middle" nowrap="nowrap" class="lightgrey"><form name="searchform" onsubmit="return dosearch();">
<input type="text" name="searchterms" />
<input type="submit" name="SearchSubmit" value="Search" />
<select name="sengines">
<option value="websearch" selected>Web Search</option>
<option value="dirsearch">Directory Search</option>
</select>
</form></td>
[/code:1:9c3e51bbfd]

The css styles for lightgrey and form are

[code:1:9c3e51bbfd]
form {
text-align: center;
vertical-align: middle;
}
.lightgrey {
font-family: Arial, Helvetica, sans-serif;
font-size: 9px;
color: #FFFFFF;
line-height: 8px;
background-color: #cccccc;
}
[/code:1:9c3e51bbfd]

Any idea why this is happening. The grey box should be inline with the image.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-13-2004, 03:09 PM   #12 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Also it doesn't seem to be aligning to the middle
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-14-2004, 12:19 AM   #13 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Funnily enough it seems to be better in Mozilla, the grey box is aligned with the image. However the form still isn't aligning to the middle of the box.

Have a look at it here http://www.blueuniverse.co.uk/new/
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-14-2004, 01:52 PM   #14 (permalink)
Member
 
JuggoPop's Avatar
 
Join Date: 10-09-03
Posts: 9,594
iTrader: 0 / 0%
Latest Blog:
None

JuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest order
couldn't you put the form in a DIV tag and adding style padding to the top, forcing it to move down?
JuggoPop is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-14-2004, 09:02 PM   #15 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
JuggoPop's suggestion sounds good.
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-15-2004, 01:28 AM   #16 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
I had a go with your suggestions and I managed to get it aligned to the middle. Unfortunately the table decided to double in height when I did this though.

It is actually only supposed to be 37px tall.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-15-2004, 06:45 AM   #17 (permalink)
Member
 
JuggoPop's Avatar
 
Join Date: 10-09-03
Posts: 9,594
iTrader: 0 / 0%
Latest Blog:
None

JuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest order
take the cellpadding off the table (if there is any) ...
JuggoPop is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-15-2004, 02:06 PM   #18 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
There isn't any. I just have padding on the layer.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-15-2004, 09:17 PM   #19 (permalink)
Member
 
JuggoPop's Avatar
 
Join Date: 10-09-03
Posts: 9,594
iTrader: 0 / 0%
Latest Blog:
None

JuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest orderJuggoPop is a web professional of the highest order
hmmm... I don't know if this will make a difference, but try changing it from valign=middle to top, then put in the padding needed.

that may be off, I looked at you css and source, I don't see the problem off hand...
JuggoPop is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-16-2004, 12:25 AM   #20 (permalink)
Inactive
 
edbarton's Avatar
 
Join Date: 10-13-03
Location: England
Posts: 2,781
iTrader: 0 / 0%
Latest Blog:
None

edbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really niceedbarton is just really nice
Well, I think I've done my best with it now. The box looks fine in Mozilla size wise but IE seems to want to bloat it a bit. I guess I will have to live with it though. Thanks for the help with it Dave and Juggo. Much appreciated.
edbarton is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code for submit form in Dreamweaver gajer Web Design Lobby 1 02-26-2008 11:51 AM
Tabulating Form Code Help Rooster Coding Forum 5 03-12-2007 01:40 PM
Looking for someone to professionally code and order page form Bluecircle Web De