SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Feel my RewiredMind KMxRetro's Avatar
    Join Date
    Jan 2001
    Location
    Exeter, Devon, UK
    Posts
    477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there any way that I can automatically redirect a user to a different page inside the <BODY> of a page?

    I have a script that has an "if this happens, redirect to..." type statement that happens to be run after the headers have been written, so therefore I need to redirect from the <BODY>.

    Any ideas?

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    javascript, javascript

    PHP Code:
    <script language="JavaScript">window.location='<?=$PHP_SELF?>?somevar=<?=$somevar?>';</script>
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •