RE: control browser with <a href> tag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> i have two pages: list.php and update.php
> 
> list.php will have a hyper link that when click on, it will open a new
> window for user to update info.  once user clicks update button on
> update.php page, i want to close update.php and return to list.php.
> however if user doesn't click update button, i don't want user to go back
> to list.php.  in other word, freeze up list.php until user closes or
> clicks update button on update.php.
> 
> is this possible to do with php?

Yes and no, don't think you intend to, but you may be mixing technologies.
You refer to hyperlinks, etc, which is web technologies and windows, which
is not unless you use javascript or ajax.  With PHP you can cause your
browser to open a new browser by adding target="_blank" to the hyperlink,
but you cannot easily disable functionality of the old browser (It's still
open, just usually covered up by the new browser), and if the user clicks
your hyperlink again a 3rd browser will be opened.  You could name your
target (target=mypage) which means if the user clicks it a new browser will
be opened, and if the user clicks the same link again, a 3rd window will not
be opened, but the page in the "mypage" target will be refreshed. 

HTH,

Warren Vail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux