Results 1 to 2 of 2

Thread: Having problem with iframe

  1. #1
    Join Date
    Aug 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Having problem with iframe

    Hello.

    Can someone tell me how to open this code in a iframe?


    Code:
    <form name="process" id="process" method="POST" enctype="multipart/form-data" action="http://www.externalDOMAIN.com/process" >
     <input type="hidden" name="script_id" value="64"/>
    When i upload a file and it redirects from mydomain.com to externalDOMAIN.com/process

    All i want it to open externalDOMAIN.com/process in iframe (so i can add a button "Back" in header of the iframe.

    Thank you!!!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,994
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    If I understand what your asking, the answer is either to put the form on a separate page (call it - say, form.html, or form.php) on the external domain, then on the mysite domain page where you want it to appear put:

    Code:
    <iframe src="http://externalDOMAIN.com/form.php" width=400 height=300></iframe>
    Or you can still host the form on the mysite domain page, and target it to an iframe on that page:

    Code:
    <form method="post" action="http://externalDOMAIN.com/process" target="resultframe">
    rest of the form here . . .
    </form>
    <iframe name="resultframe" src="about:blank" width=400 height=300></iframe>
    However, I'm not so sure what of value you will get with a back button. It can only take you back one or more pages in the history stack. If going back just one page after submission, in the first case that would take you back to the form where it could be resubmitted, which could result in a duplicate submission. In the second case, back to the blank page in the iframe.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. iframe problem
    By alienbdit in forum HTML
    Replies: 7
    Last Post: 09-09-2011, 06:26 PM
  2. CSS problem with IFRAME
    By Archange in forum CSS
    Replies: 1
    Last Post: 04-15-2009, 04:07 PM
  3. Iframe problem in FF & IE
    By techunar in forum HTML
    Replies: 2
    Last Post: 07-16-2006, 12:51 PM
  4. Firefox Random Iframe & Iframe SSI II problem
    By corbinb2 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-06-2006, 03:27 PM
  5. Iframe problem.
    By sunny in forum HTML
    Replies: 2
    Last Post: 04-17-2005, 10:27 AM

Bookmarks

Posting Permissions

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