Jump to content

Radio button response help(open webpage)


jahphill

Recommended Posts

Hey.

 

Im new here and a total newb at scriping =D

 

Right this is what im trying to do.

I want to make a radio button connected to a text box.

 

Say the button 'define' has been clicked, and in the text box 'php' has been written in, it should go to google where 'define: php' has been written in and searched.

 

This is what i have done so far:

<input type="radio" name="engine" id="engine" value="define" CHECKED> <b>Define<\/b>

and

 

<form name="example" style="margin:-10 0 5 10" id="example" action=
    "somephpradiobutton-if-response" method="post" target="_blank">
      <br>
      <input type="text" name="search" id="search" maxlength='60' size='45' value=""> <input type=
      "submit" value="Search"><br>
      <br>

      <div id="heh"></div><script type="text/javascript">
foo(search);
</script>
    </form>

 

But i do not know what type of response script would be in the action=

    "somephpradiobutton-if-response"

 

 

something like ' if define, then go to this url:....'

 

could anyone give me an example what would be in response.php script with the data i have given above?

I have searched ALOT but all i find is alert boxes that open giving a message, and 'sql' or something like that :(

 

Thankyou in advanced!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.