I have an inital form that passes data to a second page using $_POST.
The second page is a form as well however the action attribute points to itself as a user may want to execute the form several times.
I need to pass some non-form data from first execution of the second form back to itself for the second/third etc. execution of the form so I can't use $_POST because its not form data.
I tried starting a session on the second form but this just produced errors and failed to start the session correctly.
I've now started the session on the first form however unless I call session_start() on the second form too I get Undefined variable: _SESSION on submission of the form data.
If I include session_start() on the second form too I get - "A session had already been started - ignoring session_start()" Is this normal or can I ignore it?
The second page is a form as well however the action attribute points to itself as a user may want to execute the form several times.
I need to pass some non-form data from first execution of the second form back to itself for the second/third etc. execution of the form so I can't use $_POST because its not form data.
I tried starting a session on the second form but this just produced errors and failed to start the session correctly.
I've now started the session on the first form however unless I call session_start() on the second form too I get Undefined variable: _SESSION on submission of the form data.
If I include session_start() on the second form too I get - "A session had already been started - ignoring session_start()" Is this normal or can I ignore it?