| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Feb 2005
Posts: 345
![]() | Conditional "target=_blank" ? I have a form and 90% of the time I want the results to pop up in a new browser window. However, sometimes under certain circumstances I want the results to go ahead and appear in the current window instead of opening a new browser window. Is there any way to implement this sort of conditional browser window control in the forms action PHP file? Thanks! |
| |
| | #2 (permalink) |
| Senior Member Join Date: Aug 2004 Location: uk
Posts: 1,378
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I am not sure how easy this would be to implement into your script, but something like this would work. PHP Code: |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Feb 2005
Posts: 345
![]() | The problem is that it is form results that I either want to show in a new window (ie: show a page from another website in a new window leaving the form on my site in the original window), or redisplay the form in the same window with an error message if bogus parameters are entered. So I need to make this decision on the fly from the forms action script. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic Introduction to Programming - Vocab | Rudy | Webmaster Tutorials | 1 | 08-23-2005 06:08 PM |
| JavaScript: Conditional Firefox CSS | Albatross | Programming | 0 | 06-21-2005 08:45 PM |