I have a php script to detect mobile devices , so basically when I detect a mobile device I switch from index.html to mobile.html via header('Location'). So my problem is most of the time index.html is called with post data ,and I need to switch this data over to mobile.html ,because after all two files serve the same purpose.
I need something neater ,something that would behave like this:
load('mobile.html' , $_POST);
maybe rewrite headers or something!
Any ideas !?