php / server problem

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default php / server problem

    i'm using php to send form contents, then redirect the user to a page that
    notifies them the info was sent. i used "header(location: url.com)" at the end
    of the script to redirect, but i get an error from my server: "Warning: Cannot
    modify header information - headers already sent by . . ."

    should i be using another method? is there something i can configure to fix
    it? thanks.

    aaron.f Guest

  2. Similar Questions and Discussions

    1. I?ve got a problem writing files on the server side withFlash Media Server 2.0.2 and 2.0.3.
      Hello, I?ve got a problem writing files on the server side with Flash Media Server 2.0.2 and 2.0.3. The same code was working fine with an older...
    2. Testing Server problem: Server name or address couldnot be resolved!
      Not sure if this helps but I was going step by step in the Getting Started Experience Tutorial and when it got to the Database tab -- RDS Login...
    3. frontpage 2003 server extension problem with server 2003
      I have frontpage 2003 on a server 2003 . I get the following message when I use sharepoint admin and I try to recalculate the web The server...
    4. Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
      HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I...
    5. Problem: Copy data from server 1 to server 2
      Hi together ! I have a problem: I "just" wan't to copy some records from server 1 to server 2 (same table). But here are the problems: 1....
  3. #2

    Default php / server problem

    i'm using php to send form contents, then redirect the user to a page that
    notifies them the info was sent. i used "header(location: url.com)" at the end
    of the script to redirect, but i get an error from my server: "Warning: Cannot
    modify header information - headers already sent by . . ."

    should i be using another method? is there something i can configure to fix
    it? thanks.

    aaron.f Guest

  4. #3

    Default Re: php / server problem

    ..oO(aaron.f)
    >i'm using php to send form contents, then redirect the user to a page that
    >notifies them the info was sent. i used "header(location: url.com)" at the end
    >of the script to redirect, but i get an error from my server: "Warning: Cannot
    >modify header information - headers already sent by . . ."
    Two things:

    1) The URL given in a Location header must be absolute, including the
    scheme (http) and hostname.

    [url]http://www.php.net/header[/url]

    2) You can't output anything before sending the Location header. Check
    the error message for line numbers and check these. Even a single blank
    or a line break outside of a <?php ...?> block counts as content and
    will cause the error message you got.

    Micha
    Michael Fesser Guest

  5. #4

    Default Re: php / server problem

    You cannot use a header to redirect after content has been sent to the page.

    Instead try a meta redirect, and also be sure to provide the user with a
    "click to continue" type doohickey as a failsafe.

    VVebbie Guest

  6. #5

    Default Re: php / server problem

    ..oO(VVebbie)
    >You cannot use a header to redirect after content has been sent to the page.
    >
    > Instead try a meta redirect
    Please don't.

    Micha
    Michael Fesser Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139