www.webdeveloper.com
Results 1 to 2 of 2

Thread: Copy Form Field

  1. #1
    Join Date
    Feb 2010
    Posts
    1

    Copy Form Field

    Hello

    I am looking to take the information submitted into field A and add it to the end of the value of field B

    Text Field A = Zip
    Hidden Field B - redirect = http://mydomain.com?&=<<<ZIP>>>

    <form method="post" >
    <input type="hidden" name="redirect" value="http://mydomain?l=<<<ZIP>>> "/>
    <input type="text" name="Zip" value='' ">
    </form>


    When they put in their zip code, I need the script to add that information at the end of the redirect URL

    Hope that explains what I'm trying to do..
    Any help would be appreciated

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    <form method="post" >
    <input type="hidden" name="redirect" value="http://mydomain?l="/>
    <input type="text" name="Zip" value="" onblur="this.form.redirect.value+=this.value;">
    </form>

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



Recent Articles