Running scripts based on user form input - help required.

S

skinnybloke

Hi - a bit of a Javascript newbie here

Can anybody point me to a tutorial whereby I might be able to work out
this requirement.

1. User enters text in an input box on a html page.
2. They select via a radio button whether to search "My Site" or the
"Internet".
3. If they choose "My Site" it's action = an internal cgi script to
search my site.
4. If they choose "Internet" it displays results from google and
overture on the same page.

I've tried lots of different methods but can't seem to get anywhere

Any help would be appreciated
 
V

VK

skinnybloke said:
Hi - a bit of a Javascript newbie here

Can anybody point me to a tutorial whereby I might be able to work out
this requirement.

1. User enters text in an input box on a html page.
2. They select via a radio button whether to search "My Site" or the
"Internet".
3. If they choose "My Site" it's action = an internal cgi script to
search my site.
4. If they choose "Internet" it displays results from google and
overture on the same page.

I've tried lots of different methods but can't seem to get anywhere

Any help would be appreciated

It is very easy:
1) go to <http://www.google.com/searchcode.html>
2) read and agree on "Terms of Service". In the particular you agree to
display Google credentials atop of search results. If you don't like
the terms - do not agree on them and do not use Google whatsoever.
Otherwise go to 3)
3) On the next page copy the 3rd variant (search Web / search my site).
4) Paste the code into frame/iframe on your page.
You are done!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top