Sanket Raut
Sanket Raut

Reputation: 1

PHP header redirection problems

I have been working on a registration form for a website. The form gets user data, validates it and adds it to mysql database. For user to avoid sending data again I have used header redirection method. It redirects to the same page with additional variables. I have included the form in the index page. This works fine except for some additional reasons. The index page has div element in which entire page is included. The form redirects until the div element doesn't have style attrib set. I can't understand the problem. Is this a CSS issue? Please help.

Upvotes: 0

Views: 129

Answers (2)

m0unir
m0unir

Reputation: 72

and be curefull from the BOM of UTF-8

Upvotes: 2

Sarah West
Sarah West

Reputation: 2037

You should look that there is no html ouput before you user header()

Upvotes: 2

Related Questions