QUOTE(unsigned user; @ 13 Jul, 2007 - 04:05 AM)

Hi,
I'm new to web dev so this might be newbie question. How do I allow the user to press a button (created in HTML) that takes the string entered into the text field and searches google with it? For example, google's search template is
http://www.google.ie/search?hl=en&q=QU...UERY2&meta= I need to replace QUERY1 and QUERY2 with the inputted data. Any ideas or links?
Thanks
You're going about it slightly the wrong way, I think. You're trying to grab the text field, and then use it to generate an URL in the form of a google results page.
But you don't have to do it that way. Below is example code that allows you to creates a text box and a submit button, and then searches google.
CODE
<html>
<head>
<title>Google Search</title>
</head>
<body>
<form action="http://www.google.com/search" name="searchbox"
method="get">
<div id="search">
<input type="hidden" name="hl" value="en" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" class="text" maxlength="64" size="40" name="q" value="" />
<input type="submit" class="submit" value="Search" name="btnG"
style="font-size:75%;" />
</div>
</form>
</body>
</html>
I hope that's what you're looking for