Skip to main content
Participant
February 20, 2010
Answered

redirect after inserting record

  • February 20, 2010
  • 1 reply
  • 438 views

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

This topic has been closed for replies.
Correct answer David_Powers

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.

1 reply

David_Powers
David_PowersCorrect answer
Inspiring
February 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.

PAReigerAuthor
Participant
February 20, 2010

That was it.  Thanks David.