Forum Moderators: open

Message Too Old, No Replies

Google Search Engine

hiding values

         

luffo

12:22 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



i am trying to add the google local site search to my site but I was wondering if there is any way to hide the "site:www.stanford.edu" from the text box but still having it submitted along with the text.

I have tried seperate text boxes, hidden tags and the only solution i found was to put it lower down in a multi-line text box.

[edited by: heini at 12:50 pm (utc) on Jan. 4, 2004]
[edit reason] please don't post urls / thanks! [/edit]

PhraSEOlogy

12:29 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



You could try using javascript to add the search parameter to the query entered. When the form is submitted you call a javascript routine to format the input field with any extra parameters you want to add.

luffo

12:31 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



how would i do that? sorry i am a novice

PhraSEOlogy

12:31 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



Posting URLs in the forums is frowned upon and Brett has warned against including them. Just thought I would mention that to you.

luffo

12:33 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



sorry, again i am new

PhraSEOlogy

12:43 pm on Jan 4, 2004 (gmt 0)

10+ Year Member



I dont have a code example. Try searching for 'javascript tutorial onsubmit' There are serveral good tutorials that will help you modify input fields using the onsubmit event handler for forms.