Can you help me.

Discussion in 'HTML & Website Design' started by dannywozeya, Dec 28, 2007.

  1. #1
    Hi i need a little help.

    I need to create a page the page is created but what i need help with is a box.


    i need a submit box which links to somethink like http://www.mydomain.com/offer?$uid where the $uid needs to be of the user so what i need is like a search box where the user types there userid for example tom so they would type tom in the box click go and it would go to http://www.mydomain.com/offer?tom instead of http://www.mydomain.com/offer?$uid so it would change the $uid to the username.

    can you help me.

    Thanks.
     
    dannywozeya, Dec 28, 2007 IP
  2. dannywozeya

    dannywozeya Guest

    Messages:
    500
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No body know?
     
    dannywozeya, Dec 29, 2007 IP
  3. JohnZing

    JohnZing Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try something like this (note : just an example - not tested)

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function Jump()
    {
    window.location.href = 'http://www.mydomain.com/offer?' + document.form1.text1.value;
    }
    // -->
    </SCRIPT>

    <FORM NAME = "form1">
    <br>
    <INPUT TYPE = TEXT NAME="text1" SIZE = 80>
    <INPUT TYPE = BUTTON VALUE="Navigate to a URL" ONCLICK="Jump();">
    </FORM>
     
    JohnZing, Dec 29, 2007 IP
  4. dannywozeya

    dannywozeya Guest

    Messages:
    500
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for trying to help but it does'nt seem to work thanks anyway.
     
    dannywozeya, Dec 30, 2007 IP