cheesywan Posted May 6, 2007 Share Posted May 6, 2007 is it possible to open a new html page from inside a php script on a page? I have a form on a page that when submitted points to another page, but I can't seem to find a method that will call up the new page. (even opening a new window would work) thanks in advance, Old Newguy Link to comment https://forums.phpfreaks.com/topic/50223-opening-a-second-html-page-from-a-php-script/ Share on other sites More sharing options...
paul2463 Posted May 6, 2007 Share Posted May 6, 2007 <?php header("Location: http://www.example.com/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?> taken from the manual which is located <a href="http://uk2.php.net/header"> HERE </a> Link to comment https://forums.phpfreaks.com/topic/50223-opening-a-second-html-page-from-a-php-script/#findComment-246538 Share on other sites More sharing options...
cheesywan Posted May 6, 2007 Author Share Posted May 6, 2007 paul2463, thanks for the reply, but I get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/content/c/h/e/cheesy/html/HTTPRequest.php:92) in after looking in the manual foe header commands, maybe I have asked the wrong question. what I would like to do is let a user go to someone else's web page after storing the choice of destinations the user has clicked on thanks, Newguy. Link to comment https://forums.phpfreaks.com/topic/50223-opening-a-second-html-page-from-a-php-script/#findComment-246543 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.