Xavier
|
Posted: 05/22/2002, 7:43 AM |
|
Hello,
I just added this code to After Insert Events in a Record Form.
print "Record Successfully Inserted!";
sleep(2);
and I get this, in a blank page:
Warning: Cannot add header information - headers already sent by (output
started at /path_name/APFRec.php:235) in /path_name/APFRec.php on line 242
where APFRec.php is the Insert Page. Form Action for Record Form is to jump
to another page.
My idea is to display a confirmation for the creation of a new record.
How should I do?
Thanks,
Alex LL
|
|
|
Alexey Alexapolsky
|
Posted: 05/23/2002, 2:56 AM |
|
After you print this message CC redirects user to another page,
specified in Form Action. I suggest that you print this on that another page
,
having previously in "after insert" set session var that shows success , and
check this var on
the next page , if true , print your message.
--
Alex
CodeCharge Developer
"Xavier" <nobody@nowhere.invalid> wrote in message
news:acgaq8$tqe$1@news.codecharge.com...
> Hello,
> I just added this code to After Insert Events in a Record Form.
>
> print "Record Successfully Inserted!";
> sleep(2);
>
> and I get this, in a blank page:
>
> Warning: Cannot add header information - headers already sent by (output
> started at /path_name/APFRec.php:235) in /path_name/APFRec.php on line 242
>
> where APFRec.php is the Insert Page. Form Action for Record Form is to
jump
> to another page.
>
> My idea is to display a confirmation for the creation of a new record.
> How should I do?
>
> Thanks,
> Alex LL
>
>
|
|
|
|