Forum Moderators: martinibuster

Message Too Old, No Replies

AdSense + Passing Form Variables

Generating Relevant Ads Based on Form Variables

         

walrus760

12:40 am on Sep 22, 2005 (gmt 0)



So I'm working on my first site, just a silly little random coin flip site that can be found here:

[headsyestailsno.com...]

On the home page you'll see a basic user text input where the user is to input a yes/no question. So for example, they input the question, "Should I go to the movies tonight?" Once they submit the question, the text variable is passed to the output.html page via the URL. On the output.html page, I want to have relevant ads generated by what the user typed in the text field on the homepage. So for the question above, the ads might be about movie tickets, dvds, etc.

I'm using the Preview Tool to track the site's functionality...and as it stands now, all I get are ads about Forms, and Form Validation, etc. So it looks like its not scanning the url to get the relevant ads.

The weird thing is, if you type in "movie" instead of the movie question it will generate relevant ads in the preview tool. Why is that? Will AdSense do what I am trying to get it to do? I worked fine on my localhost.

Look forward to having you look over my site and telling me whats up.

Thanks

Justin

mvander

12:56 am on Sep 22, 2005 (gmt 0)

10+ Year Member



I would simply set the form field variable to the <title> and the <h1> tags on the page (checking for valid input first) and see if that works.

Heartlander

1:13 am on Sep 22, 2005 (gmt 0)

10+ Year Member



I typed "What is Spam?" in your form, and it froze up on me.
Kinda like where your link is gonna go- deep freeze.

Sorry, but the TOS here do not allow for links in posts.
Kiss it goodbye! ; )