Results 1 to 2 of 2

Thread: [Help] HTML Form

  1. #1
    Join Date
    Nov 2009

    [Help] HTML Form

    Im new lol.
    And im developing myself a homepage for my browser (like a quickstart).
    I want it to be kind of like the thing jimmyr has.
    Currently all it is is a HTML form that searches google:
    PHP Code:
    <form method="get" action="http://www.google.com/search"><input type="text"   name="q" size="31" maxlength="255" value="" /><input type="submit" value="Search" /></form></center
    I want to add radio buttons under neath this with names like "Google" or "The pirates bay" and have it search these sites.
    Please tell me how i would go about doing this.
    Also, how would I make the search action change depending on which Radiobutton is selected.
    Please, if anyone can help me, i will write a tutorial on encryption/decryption and upload here.

  2. #2
    Join Date
    Jun 2009
    Use javascript. You can set the form action by doing
    form.action = "http://www.google.com/search";
    Do it either on submit, or each time the option is changed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center