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

redirect after inserting record

New Here ,
Feb 19, 2010 Feb 19, 2010

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
460
Translate
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.

Translate
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.

Translate
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
LATEST

That was it.  Thanks David.

Translate
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