issue using Iframes, with Parent class

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 64
Joined: Thu Mar 14, 2013 6:10 am

Fri Mar 29, 2013 12:58 am

I have a Parent class called


I have a child frame in that subframe.html, I have some fields in subframe.html like combo box and now I have a Submit button on MainForm.php which is parent class.

Now when user clicks on Submit button on MainForm.php, i should read the values from all the controls and want to submit in my DB class, currently I am having my database connection in one more class submit.php.

Can anyone tell me how can I access Iframe controls data in submit.php(database class) .


php-forum Fan User
php-forum Fan User
Posts: 974
Joined: Mon Oct 01, 2012 12:32 pm

Fri Mar 29, 2013 7:20 am

just have a form in the frame that posts the data to the class using it.

your form would just be initialized like: <form action="submit.php" method post> ... </form> and when they submit, the execution would be transferred to submit.php and the form values will be stored in the $_POST array. there are many examples on the forum of using post and get to send values between scripts. or here's a video ... et-request

Post Reply