PDA

View Full Version : Java redirection with form field fill in


SneakyDave
04-09-1999, 02:24 PM
Form field fill in.. isn't that a song by the Grandmaster Flash and the Furious Five?

OK, I was going to ask this in the PHP forum, but I think its almost impossible to do it with PHP. I think it can be done in Java though.

Here's the question:
Let's say I want build a form that simply has an input box and a Submit button. When said button is clicked, the person is sent to Yahoo with the input box value assigned to the Yahoo search box.

I don't want Yahoo to actually perform the search, I just want the site to be loaded, and the input box value defaulted into Yahoo's search box.

Anybody have a clue on how I can do that in Javascript (or other script?)

Thanks kindly...
Sneaky

Justin
04-09-1999, 09:47 PM
You don't want the search performed, but you want the box filled in? Easy. Just call up Yahoo's administrator and ask if you can edit their search page http://www.aota.net/ubb/smile.gif

Sorry - had to do it. The only way that can be done is to actually modify their page to take arguments, like via JavaScript - otherwise you can't http://www.aota.net/ubb/frown.gif

You can easily perform a search though - I had a page set up for a short while with a drop down box to pick your engine and an input box for keywords http://www.aota.net/ubb/smile.gif It was a tiny toolbar-looking frame thingus. I might put that back up at my new site, just for the heck of it - maybe... it uses a tiny Perl script, but I'll probably use php for the next one http://www.aota.net/ubb/wink.gif

Anyway, hope that answers your question.

------------------
Justin Nelson
FutureQuest Support

SneakyDave
04-10-1999, 09:48 AM
Raarrrghghghauaughgh! (As The Hulk would say).

That doesn't answer my question, but it just means I have to do it another way.

Thanks for the input though!

Sneaky