I created a PHP ticketing system. When uploading my script to the web I got the following error when redirecting to the second page:
Warning: Cannot modify header information - headers already sent by... output started at line 29.
I didn't have this error when developing on my local pc with wampserver.
The ticketing PHP consist of two pages:
- First Page: HTML form, PHP validates input after clicking on submit. If everything is OK ==> redirect to second page.
- Second page: selecting the tickets.
I realize I get this error because I output HTML before redirecting to another page. How can I resolve this? (because I have to output the HTML)
Kind regards