Jump to content


Photo

breaking out of iFrames with php


  • Please log in to reply
1 reply to this topic

#1 hellonoko

hellonoko
  • Members
  • PipPipPip
  • Advanced Member
  • 213 posts

Posted 30 June 2006 - 06:34 AM

I am using a: header("Location: http://location.com"); call to redirect after a form is posted.

However the form page is within an iFrame and after the redirect the new web page is loaded within the iFrame rather than in the main page as i need it to be.

Is there anyway I can specify the target or can someone suggest a better way to break out of the iFrame.

Thanks


#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 30 June 2006 - 04:31 PM

You need to use javascript to do that.
check this page for details

http://www.w3schools...=tryjs_breakout

NoGray.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users