header - PHP Forward to next Page -


i have form that, on submit, going php file. here form processed , sent mysql database storage. after done want page to, automatically, send me next page wich contains form has filled in (this continues few times).

i know can use
header('location: here youre link ');
sending next page, doesn't work.

in php file have basic stuff:
request form, process data, insert database....

when put "header....."-code after these php commands returns error, , same thing happens when place in front of php commands.
keeps returning error:
cannot modify header information - headers sent .... on line 17

i hope can me, , have given information need me. i've been searching day still haven't found solution.

thanks in advance!
milaan

the "headers sent" error caused having white space before or after opening , closing php tags (<?php . . . ?>).

use of ob_start() helps.

this function turn output buffering on. while output buffering active no output sent script (other headers), instead output stored in internal buffer.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -