Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Adding text box variables to url

    Hi Guys

    Please forgive my ignorance, I am a newbie to HTML etc, I just want to perform a simple task but do not know where to begin.

    I want to make a very simple website with different text fields, eg:

    Text1 text box to enter text)
    Text2 : (text box to enter text)
    ....

    And then I want to take that entered text and insert it into a URL when the person has completed entering the text and clicks a button, eg:

    Http://www.domain.com/directory?"text1,text2...

    So essentially I want the text to be injected into a URL and path followed when the button is clicked, am I making sense or do I sound like a nut?

  • #2
    Regular Coder
    Join Date
    Dec 2011
    Location
    NW England
    Posts
    194
    Thanks
    8
    Thanked 15 Times in 15 Posts
    This belongs in the PHP forum, however, to do this you:

    Code:
    <form action="yourfile.php" method="get">
        <input type="text" name="whatever" />
        <input type="submit" name="submit" value="Sumbit" />
    </form>
    So now when they click submit, they will be sent to: yoururl.com/yourfile.php?whatever=what-they-inputted

  • #3
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, My apolhies for not posting this in the correct section, i was not sure as what section it would fall under.

    Please assist me further, this is what i would like to achieve:

    https://zonomi.com/app/dns/dyndns.js...ype=A&api_key=APInumber

    So i want a radio box selection to state Action=(set/Delete/Query)
    and a text field to state: host=(name=examle)

    and a submit button which will fill the variables into the url and follow that url?


  •  

    Tags for this Thread

    Posting Permissions

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