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
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    875
    Thanks
    53
    Thanked 6 Times in 5 Posts

    form hidden field redirection to parent page

    I have a form in an iframe that submits nicely. Here is one of the hidden fields that gives the page to redirect to after submitting the form:

    Code:
    <input type="hidden" name="rtrn" value="http://www.domain.com/thanks.html" target="_parent">
    The parent target doesn't work, does anyone know how I get the thanks page to replace the page containing the iframe?
    The difference between genius and stupidity is that genius has its limits. (Albert Einstein)

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    The target attribute only works in anchor links and forms. Try adding it to the form tag.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    875
    Thanks
    53
    Thanked 6 Times in 5 Posts
    Yes, thanks that worked.
    The difference between genius and stupidity is that genius has its limits. (Albert Einstein)


  •  

    Posting Permissions

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