PDA

View Full Version : pushing form data through a iframe



Jon W
Jan 29th, 2010, 08:34 PM
I'm working on a image upload script. I have finish the PHP side of things now I'm ready for javascript to do its side of things. I wanting to have no page refresh the only way I know of doing this is pushing the form data to a iframe with the target property.

I understand the concept of it but I'm not to sure how to write. Can someone help me out with this?

Thank you!

A1ien51
Jan 29th, 2010, 08:54 PM
Did you start here: http://www.google.com/search?q=php+iframe+image+upload

Eric

Jon W
Jan 29th, 2010, 09:14 PM
Yes, I did. But I was looking for something more straight to the point. I couldn't find anything that offered that.

A1ien51
Jan 29th, 2010, 09:32 PM
First result looked pretty straight forward to me

You set up your form to post to the iframe [set target to the id of the frame]. You handle the file upload just like you would for any other form.

Eric