Re: Open form in new window
| From: | Maciek Sokolewicz | Date: | Mon, 04 Mar 2013 07:16:26 +0000 |
| Subject: | Re: Open form in new window | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320378@lists.php.net to get a copy of this message | ||
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.