Re: Open form in new window

[email protected] (Jim Giner)
Newsgroups php.general
Message-ID <[email protected]>
On 3/4/2013 12:44 AM, John Taylor-Johnston wrote:
> I have many different submit button.
> <input value="Update" type="submit">
> <input name="DPRmode" value="Enter Data" type="submit">
>
> When php processes value="Enter Data", I would like to open a new
> window, but only if I click this one.
>
> Possible? I knw ther is an HTML target="" thingy. Can PHP do anything
> magic?
>

Just put the DPRmode button in a separate form where that form's target 
attribute specifies another window name.  Check your html reference for 
reserved names you can use or just make one up. If you need some of the 
input values that duplicated in this "new" form, use an onclick js 
function to populate some hidden html fields contained within the form 
from the original inputs outside the form.  A bit of work, but very easy 
to do.  OR - you could use that same js function to alter the target 
parm of the single form that you have.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.