Forms within forms (ish)
Posted: Tue Mar 02, 2010 9:30 am
Hi php gurus, hope you can help me with a little problem i have encountered.
Basically i have a php generated page that can update multiple records within a mysql database (creates one big form in a table and uses arrays to submit changes back to database), this is used for updating targets for sales reps within our company.
However at the end of each line in the table (ie one for each sales rep) i want a button that can open a small pop-up that extra adjustments to the target can be made. This window is independent of the main window and will not affect the figures on the first page. Only thing is that it needs two php variables passed from the first form ($rep_name & $period).
Normally i would use a simple form submit button with the two variables as hidden input types. but because one of these hidden forms are nested within a bigger form it confuses the main form functions.
Can anyone give me some idea how to create a button (assuming it is possible of course) that can open a popup window (preferably of a set size) and pass variables to it like a form POST function does, but does not use any form html commands.
Any help would be massively appreciated
Obviously code can be posted if needed
Basically i have a php generated page that can update multiple records within a mysql database (creates one big form in a table and uses arrays to submit changes back to database), this is used for updating targets for sales reps within our company.
However at the end of each line in the table (ie one for each sales rep) i want a button that can open a small pop-up that extra adjustments to the target can be made. This window is independent of the main window and will not affect the figures on the first page. Only thing is that it needs two php variables passed from the first form ($rep_name & $period).
Normally i would use a simple form submit button with the two variables as hidden input types. but because one of these hidden forms are nested within a bigger form it confuses the main form functions.
Can anyone give me some idea how to create a button (assuming it is possible of course) that can open a popup window (preferably of a set size) and pass variables to it like a form POST function does, but does not use any form html commands.
Any help would be massively appreciated
Obviously code can be posted if needed