Re: Open form in new window

[email protected] (Maciek Sokolewicz)
Newsgroups php.general
Message-ID <[email protected]>
On 4-3-2013 6:44, 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?
>
No, it can't. PHP is a *serverside* language, while opening a new window 
is fully *clientside*. You could, after recieving the form submission, 
send back a redirect which opens in a new window; but far easier would 
be to use javascript which would open a new window on submission instead.

PHP is definitly the wrong choice for things like opening browser windows.
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.