Jump to content


Photo

PHP Form Processor in iFrame?


  • Please log in to reply
1 reply to this topic

#1 logged_with_bugmenot

logged_with_bugmenot
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts

Posted 21 August 2006 - 12:00 AM

How would I include a form processor in an iframe on an html page so that the form action would be "page.php" and "page.php" is in an iframe on "page2.html"?

And if that was too confusing:

page.htm is the page with the form
page.php is the processor
page2.htm is another page that contains the form processor in an iframe

How would I code that?
Earn money with Google AdSense

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 21 August 2006 - 12:55 AM

you would have to make page2 a php file so it could do something with the variables posted/got from the form previously.  Then have the source of teh iframe set to page.php?var1=x&var2=y
you would generate the strings through php for teh url....

hope that helps

but the real question is why the hell would you want to.

(Some may tell that I have frames/iframes with a passion
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users