Saturday, January 16, 2010

While redirecting from 1 page to 2nd, i want to access control of first page on 2nd page. How to do it?

Assuming you're talking about a website running on a browser, once the user has been redirected to a page, you can't control anything from where they came from.


Depending on what you want to do with the previous page, you have many methods available. If you need to validate form data (making sure an email address is okay, for example) you can do that from the second page, by accessing the form information the previous page sent to it. There are soooo many ways to do that, I won't even start.





A more general answer to your problem would be to open a popup window from page 1, use some javascript running from within the popup to change page 1 information, then redirecting page 1 to page 2 and closing the popup. Just search for ';javascript change other window'; or something.

No comments:

Post a Comment