CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Insert confirmation

Print topic Send  topic

Author Message
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
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.