Follow-up from Newbie, CSE
Thanks again, Erwin, for the advice on embedding a variable in a
google search url that my webpage will fetch, if/when it works. I'm
still working, including tonight, on implementing the advice you gave
Bulletin, this just in! After doing what follows, it occurred to me
to search for a search engine like I was trying to make. I think I
did this before, because I already knew about one that was slightly
similar, but not close enough.
But I also found another one, which seems to do almost exactly what I
want. And it uses CSE, which has the side effect that the websites it
searches aren't listed in the source code. They're in a file on
Google's site or the website site. So I don't know if includes all
the sites I would include, but like I was planning to do, it accepts
I worked on this off an on for a month, read parts of 6 books and a
lot of webpages and and had to compose questions for here, and I read
I learned a lot -- although frankly this stuff seemed more
complicated than Assembler, Cobol, or C++. Many more issues with
invalid syntax. Am I getting old and stupid, did I expect to learn
too much in 20 hours (It's always eaiser to learn the next language,
or so, I figured) , or is it really harder?
And maybe I'll be more likely to write a webpage for something not as
important as this was.
I didnt' spend any money. I didn't register the domain name, and I
hope it's still available if this search engine disappoints me, which
it probably won't. . I wont' be famous, even in the circle of people
interested in this stuff, so I guess I'm a little disappointed. But
otoh, I don't have to spend more hours or yearly money.
Thanks for your help.
Background, now sort of obsolete
But I'm also keeping my eye out for a webpage that does what mine is
supposed to, and I wanted to keep you abreast of what I'd learned, on
the slim possibility some of you don't know about this, and to ask
some questions too.
Last night I came across
http://www.asseenontvonsale.com/gadgets/rabbit-tv-usb/ not really
worth looking at, except that it had a google search box, and some of
underlying code for it I give below, but wrhat really matters is the
first line of that code, where the action is to go to
Somehow they didn't need to specify there the actual search value. So
I went to the url and learned a bit about Google Custom Search Engine,
which limits where one searches. . They give the example of googling
for wheels, and getting hits about truck wheels, steering wheels,
Wheel of Fortune, when all the user wants is bicycle wheels. So by
using CSE the search can be limited to one's own webiste or a list of
websites, iiuc websites that are not one's own. . That's just what I
wanted to do!
This was part of the code. When you sign up, iiuc they send two
sections of code to be inserted in one's webpage, and this is one of
them. I haven't tried to find the other.
<form action="http://www.google.com/cse" id="cse-search-box">
<input type="hidden" name="cx"
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Search" />