Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

redirect after inserting record

New Here ,
Feb 19, 2010 Feb 19, 2010

Copy link to clipboard

Copied

For the life of me I cannot figure out why I can't get this insert page to redirect to the page of my choosing after it's submitted.  In the code is a header() statement that seems to have no effect.  The script continues to only return to itself after submission.  I'd be very appreciative to anyone that can help figure this one out.

Thanks,

Patrick

TOPICS
Server side applications

Views

411
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 20, 2010 Feb 20, 2010

It's almost certainly because you have blank lines outside PHP tags on lines 8 and 30. There must be no output to the browser before you call header(). That includes whitespace outside PHP tags. For a more detailed explanation, see http://kb2.adobe.com/community/publishing/505/cpsid_50572.html.

Votes

Translate
LEGEND ,
Feb 20, 2010 Feb 20, 2010

Copy link to clipboard

Copied

It's almost certainly because you have blank lines outside PHP tags on lines 8 and 30. There must be no output to the browser before you call header(). That includes whitespace outside PHP tags. For a more detailed explanation, see http://kb2.adobe.com/community/publishing/505/cpsid_50572.html.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 20, 2010 Feb 20, 2010

Copy link to clipboard

Copied

LATEST

That was it.  Thanks David.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines