Forum Moderators: coopster & phranque

Message Too Old, No Replies

displaying form data in thankyou page

         

daphreephunkateer

8:51 pm on Mar 9, 2004 (gmt 0)

10+ Year Member



here again...

thanks for the help sid, but i couldnt get it to work.

my code looks like this:

---------------------------------------------------
my $recipient = 'me@mysite.com';
print MAIL "To: $recipient\n";
print MAIL "From: me\@mysitecom\n";
print MAIL "Subject: Order Form Data\n\n";

# Now print the body of mail message:
foreach my $p (param()) {
print MAIL "$p = ", param($p), "\n";
}
close(MAIL);

print <<EndHTML;
<h2>Thank You</h2>
EndHTML
print end_html;
--------------------------------------------------

The error messages that i'm getting are along the lines of:
--------------------------------------------------
Software error:
Global symbol "$p" requires explicit package name at /homepages/9/d96255069/htdocs/orderform.cgi line 46.
Global symbol "$p" requires explicit package name at /homepages/9/d96255069/htdocs/orderform.cgi line 46.
Execution of /homepages/9/d96255069/htdocs/orderform.cgi aborted due to compilation errors.
---------------------------------------------------

So, using the code that I have, how can I get the data that is printed as the body of the mail message, printed in the thankyou page?

Again, thankyou to anyone with helpful info!

daphreephunkateer

9:00 pm on Mar 9, 2004 (gmt 0)

10+ Year Member



worked it out.

how easy was that & hoe stupid am i...

cheers for the help...