Wanted: Very simple webpage using html form command

Discussion in 'Programming' started by creztor, Aug 2, 2008.

  1. #1
    Need someone to make a simple page in which there is one text field, and a submit button. When the submit button is pressed, it takes the text from the text field that was inputted and appends it to a URL and loads that URL up. Very easy, need this done ASAP.

    EDIT: Ok, 3 replies from people. No more PM until I sort through them, thanks.
     
    creztor, Aug 2, 2008 IP
  2. cywong

    cywong Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Heres the code you need: :D
    Donate me some bubz if you like the code or just ignore this if you don't;)
    <input id="testAppend"><input type="button" value="Submit" onclick="window.location = 'http://forums.digitalpoint.com/showthread.php?t=' + document.getElementById('testAppend').value;">
    Code (markup):
     
    cywong, Aug 2, 2008 IP
  3. Jasperrr

    Jasperrr Peon

    Messages:
    545
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Yep that does the job;

    Complete page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>
        <input id="testAppend">
        <input type="button" value="Submit" onclick="window.location = 'http://forums.digitalpoint.com/showthread.php?t=' + document.getElementById('testAppend').value;">
    </body>
    </html>
    
    Code (markup):
     
    Jasperrr, Aug 2, 2008 IP