Jim,
I’ve got the Gg search box working pretty well, although those Gault, ALC, LBGC and ohter settings weren’t much fun to figure out. Couldn’t figure out three of them (those three^).
How can I get it so that when someone chooses a button labeled shop and types in a search term it takes them right to Gg shop search engine with that term they typed into the search box?
Thanks,
Roger

I may be way off here, but until Monday, I will not be able to look at it. I’m on vacation until then.
If you don’t hear from me by Monday, bump me and I’ll work on it.
Best regards,
Jim.
I’ll wait a few days.
Jim,
Tried the PHP code but for some reason Firefox didn’t recognize it eventhough ultra edit appears to – blue color coding of the first part and brown for all the echos. This is what’s displayed when on the internet -
"Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-US;+rv:1.8.0.8;+RogerRoger)+Gecko/20061025+Firefox/1.5.0.8
www.actualcures dotcom
98.16.122.61"
Thanks,
Roger
Hi Roger – I’m just getting back into things and I’m a little lost on your question. Can you rephrase it? I looked at your site looking for the shop button, but couldn’t find it – then found myself reading your page on potassium deficiency!
I had that today, bad for the first time – I was shaking after a 16oz green tea and 16 diet dew. I ordered a salad from McDonald’s and a large OJ – Felt a lot better after that but in reading your page, it seems I may not have enough potassium in my diet, so I’m adding a few bananas as you suggested
Sorry – got carried away there
Give me a little more information and I’ll go from there. Also, it looks like you are using the Google Search for adsense, correct?
Best regards,
Jim.
Jim,
If you look halfway down on the left on my index page or the top left on my clean.html page you’ll see the radio buttons I have. I want to add a third radio button – "shop" or "products". For example, a viewer sees the search function on one of my pages, chooses the "products" radio button, enters i.e. "antioxidant", hits the enter button on the keyboard or the gray button on the page, and then will be taken to google.com/products with at least the word(s) typed into the google products field and preferably with the results of the search for "antioxidant".
Thanks Jim,
Roger
I see, so you are looking for the ability to have a customer type in a product within a form and have the result take them to google products, perform the search and display the results, correct?
If so, then try this; create a test page with the php extension or simply use an existing php webpage and add this code to it:
Give it a shot and let me know if that’s what you’re looking for.
Best regards,
Jim.
Jim,
That works great!! I’m thrilled. One worry though, I used it on my html pages (html extension, .html) pages not .php pages becuase I have no .php pages. Is it working becuase of the code you had me put in my Htaccess file to acknowledge PHP code in my HTML pages (when I was working on preventing cashing of my page?) AddType application/x-httpd-php .html
Thanks Jim!!
Roger
Jim,
I was trying to merge the form code you gave me with the form code I already have (from google’s adsense pages). I wanted to use the same search field for both forms.
I have
<input id="ss1" type="radio" name="sitesearch" value="www.actualcures dotcom" checked="checked" >
<label for="ss1" title="Search This Site">
<font color="#FFFFFF" size="-1"><b>Search This Site</b></font></label>
I changed the value to google.com/products and the shop page came up fine.
Is there an advantage to the PHP way over this way?
If I decide to do it this way would I just copy and past the original ss1 code below the ss1 code, change ss1 to ss2, put in the google products address for value , and change ss1 to ss2 for the label code?
Thanks,
Roger
Jim,
I was trying to merge the form code you gave me with the form code I already have (from google’s adsense pages). I wanted to use the same search field for both forms.
I have
<input id="ss1" type="radio" name="sitesearch" value="www.actualcures dotcom" checked="checked" >
<label for="ss1" title="Search This Site">
<font color="#FFFFFF" size="-1"><b>Search This Site</b></font></label>
I changed the value to "google.com/products" and the shop page came up fine.
Is there an advantage to the PHP way over this way?
If I decide to do it this way would I just copy and past the original ss1 code below the ss1 code, change ss1 to ss2, put in the google products address for value , and change ss1 to ss2 for the label code?
Thanks,
Roger
Jim,
You can see what I’m talking about at products/.html
Roger
Looks good – this is what you wanted right?
There is a whole google base api but I have not got into that; I need to, but just have not had time…
Best regards,
Jim.
Jim,
Is there an advantage to the PHP way over using google/products for the value variable?
Thanks Jim,
Roger
Jim,
I wondered if it was all too easy. Changing the value doesn’t work anymore, I’m not sure what I was doing to get that result, and the PHP way is having problems. First I get an error message: "line 332 column 31 – Warning: <form> escaping malformed URI reference" and it removes the right side and bottom portion of my site. Have any ideas?
Thanks,
Roger
Roger,
Can you give me an example of a product you are searching for that produces the error you mention? I’ll take a look once I have that.
Regards,
Jim.
Jim,
Don’t get me wrong, I’m glad there’s a way, ‘just have get it to fit into my site.
The Tidy function for the Firefox add-on is where I found it, and checking with Ultra Edit’s HTML Tidy … I get the same error.
ht tp: //users.skynet.be/mgueury/mozilla/download.html
ht tp: //users.skynet.be/mgueury/mozilla/user_guide.html
The loss of the right side and bottom of my page is at /products.html
Thanks Jim,
Roger
Jim,
I though maybe that error is becuase tidy is looking at some PHP code and doesn’t know what it is, although I don’t have this problem with the other PHP code you gave me.
Roger
Hi Roger,
I checked out actual cure products located at actualcures dotcom/products.html and I’m seeing the entire page, in firefox and IE.
What exactly is the error you are having? What is it you want to accomplish?
I’m not following…
Best regards,
Jim.
Jim,
I see that the right side of the page on the internet is not lost. When I was viewing it locally there was a problem with that, no longer. That’s great but I’m still getting that tidy error message: " escaping malformed URI reference. " in both Firefox tidy and Ultraedit tidy.
ht tp: //users.skynet.be/mgueury/mozilla/download.html
ht tp: //users.skynet.be/mgueury/mozilla/user_guide.htm
Roger
Jim,
If one person on my site buys a $10 product using thw code you gave me
<form method="get"
action="google.com/products?<?php echo $_GET['name']; ?>">Product:
<input name="q" value="<?php echo $_GET['name']; ?>" type="text">
<input value="Search" type="submit">
</form>
and another a $1000 product, will I earn anymore from the second person than the first?
How do I get the code to fit with this other code google gave me,
<form method="get"
action="actualcures dotcom/gsearch.html" target="_top">
<input name="client"
value="pub-4829232627……" type="hidden">
<input name="forid" value="1" type="hidden"><input
name="ie" value="UTF-8" type="hidden"><input
name="oe" value="UTF-8" type="hidden"><input
name="cof"
value="GALT:#44012E;GL:1;DIV:#……..</form>
which includes my google identity number through which google credits my account?
I’m not sure how to get my client number to work with the code you gave me and I’m not sure how to use the same search field for both sets of code?
Thanks,
Roger
Roger,
I do not believe you’ll make any more for a product that costs more – unless, the person that has the expensive product is willing to pay for a better position on the page of results that google delivers them, but even then, it will be only a few cents more than the position below them would pay.
As for incorporating the code I gave you into the code Google has, I am not sure. I would write them and ask if they know of a way – plus, I am not sure if you are allowed to modify the code they give you or not? I would definitely check first before moving forward.
Regards,
Jim.
Jim,
So do you think that giving readers the ability to use google/products directly off my site would or wouldn’t monetarily improve revenue over ‘search my site/search the internet’ search finds. On the surface it certainly appears it would.
Thanks,
Roger
Jim,
I found a "contact us" at Adsense and asked them about using the code in conjunction with the search box.
Roger
Good – it is always safe to ask them when issues come of concerning google code modification. Let us know what they say!
As for the question before the last, I don’t think you would make money with Google product search and I don’t believe they have a referral program on this, do they?
I think the only way you would make money with Google would be with the adsense search. If they had the google products built into the search, that would be a different story.
What about Amazon products? With that, you can get an affiliate code that will pay your for every sale made.
Here is a search for Garlic on Amazon – just an idea…
Jim,
Got a response back from google on the products code. They said to use Google Referrals in the Adsense program. And they did have a health category and nutrition subcategory.
I guess I’ll work with that.
Thanks,
Roger