To add a hidden field on IFRAME

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mandarchalke29
    New Member
    • Oct 2007
    • 7

    To add a hidden field on IFRAME

    Dear sir,

    Can anyone please tell me how to add an hidden field on IFRAME. The IFRAME is not added in Form. its just a frame can i add like this?
    [code=html]
    <iframe id="thread" name="thread" src="thread.php " style="width: 0px; height: 0px; border: 0px;">
    <input type=hidden name="message1" id="message1" value="" />
    </iframe>
    [/code]
    is it possible.
    Last edited by pbmods; Dec 23 '07, 10:07 PM. Reason: Added CODE tags.
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    Are you tring to make the frame itself hidden or the input inside of it?


    Thanks, Death

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, Mandar.

      You'd need to either use JavaScript to do this, or else you'd need to write the PHP into the page loaded in the iframe.

      Content inside of iframe tags is what gets displayed if the browser does not support them:

      [code=html]
      <iframe ... >
      Anything in here only gets displayed if the User's browser does not support iframes.
      </iframe>
      [/code]
      Last edited by pbmods; Dec 23 '07, 10:11 PM.

      Comment

      Working...