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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php