HTML, applying attributes to a searchbox that I know already works? (For moving a searchbox in OSCom

BrianD

New Member
This is the code that I have so that the textbox aligns and looks the way that I want<td class="search" width="131"><input type="hidden" name="posted" value="1"/><input type="hidden" name="sprice" value=""/><input class="textarea" type="text" name="stext" size="24"/></td><td width="31"><input type="image" name="Submit" src="../Template/images/searchbut.jpg"/></td><br />
<br />
But this is the code that actually works, (takes me to the page that I want, (notice it actually passes the variables in the URL)<br />
<br />
<div id="search_box"><form action="advanced_search_result.php" method="GET"><input type="text" name="keywords"><input type="submit" value="Search!"></form></div><br />
<br />
When I try and push the search button in the code that works I get something that looks like this<br />
<br />
http//...................catalog/advanced_search_result.php?keywords=something<br />
<br />
Notice how it is passing the keywords "something"<br />
<br />
Anyone have any ideas on this??? It is really driving me nuts.<br />
Sorry about the truncation. The page should actually be<br />
<br />
http//www.thinkinginnovative.com/Uno/catalog/advanced_search_result.php?keywords=something<br />
<br />
Well actually<br />
<br />
http//www.thinkinginnovative.com/Uno/catalog/<br />
<br />
but the advanced_search_result.php?keywords=something<br />
<br />
apears when something is put in to the textbox and searched.<br />
<br />
I don't understand how to keep the formatting the same, (and hence editing the code I want), and be able to pass the variables, the appended<br />
<br />
?keywords=something<br />
<br />
Thanks, <br />
<br />
Brian<br />
 

bustin98

New Member
The URL has been truncated by the forum. Add some spaces or something so we can see it.

EDIT
Why are you changing the names of the fields? The results are based on the input in the field named 'keywords'.

Rename the field 'stext' to 'keywords' and see how that goes.
 
Top