Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
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) .
- New php-forum User
- Posts: 53
- Joined: Thu Mar 14, 2013 6:10 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
- php-forum Fan User
- Posts: 705
- 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