Click a Button from one page Create a new table row in a different page

Dear All php Helper

i want to create a html page with iframe. where some button are there. i want that when i press on a button it create a new row with some column in my iframe page. is this possible. please help me

Shishir

You almost definetely do not want to use iframes. Theu went out of fashion around the same time as using tables for layout/ui.

You can achieve the same in other ways, do you want the rows saved in a database or is it just for that request?

Dear

yes after adding 1 or more it will save in a db.

it will be as a invoice. please help me

Dear

please also tell me how i do this not using the iframe

In my opinion this is more of a HTML/CSS question than a php question, for server side stuff 99 percent of the time can be added afterwards. As a matter of fact, a lot of times I’ll design something just using HTML/CSS as a mockup and then adding in the PHP afterwards.

Don’t get me wrong people here will be more than gladly to help you here.

[member=72138]shishir86[/member], it goes a long way, when you attempt to do it first on your own, rather than just blatantly ask for help on something you haven’t first tried to figure out.

Create a normal page, no iframes

add layout to list your rows
add button to add a new row

Javascript:
add a handler for the click event on the “add row button”
add another row with columns to the list

Sponsor our Newsletter | Privacy Policy | Terms of Service