Jump to content

Recommended Posts

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

<?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>

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.