Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

issue using Iframes, with Parent class

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

issue using Iframes, with Parent class

Postby stephenrodrics » Fri Mar 29, 2013 12:58 am

I have a Parent class called

MainForm.php

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) .

Thanks
stephenrodrics
New php-forum User
New php-forum User
 
Posts: 58
Joined: Thu Mar 14, 2013 6:10 am

Re: issue using Iframes, with Parent class

Postby seandisanti » 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 http://jream.com/learning/videos/php-ba ... et-request
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.