Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Value from Text Box 2

Status
Not open for further replies.

gpalmer711

IS-IT--Management
May 11, 2001
2,445
GB
Hi Guys,

You may feel that this problem is better suited in either an ASP or Javascript forum, if so let me know and i'll move it there.

I have a website that is going to comprise of two asp pages and one access database. main.asp will be the page that loads the main content based on the QueryString. On this page is a search box, which is a simple <Input type=text> situation. Due to the page layout I couldn't enclose it in the <form> tags because of the container that it adds - it really messed up the layout.

What I need to do is when the search button is pressed, two text strings, "search.asp?content=" & text from box, are added together and then the browser redirects to that url.

So anyone have any ideas on how to either have the form tags without the annoying container or to do the above woulf be greatly appreciated.

Greg Palmer
Freeware Utilities for Windows Administrators.
 
This is what I am talking about. I am using css to suppress the border around the text box - however I couldn't find anything similar for the actuall form. Can someone point me in the right direction?

Greg Palmer
Freeware Utilities for Windows Administrators.
 
An alternative in your case would be:
Code:
form { display: inline; }
Since you actually want it to display the form inline. Forms by default are block elements, just like divs and tables.
 
Now I just feel plain DUMB - I daren't say how long I have wasted on this [bigsmile]

Thanks all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top