emailing form data with a bit of a twist.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
smoky989
Forum Commoner
Posts: 41
Joined: Mon Sep 02, 2002 1:14 pm

emailing form data with a bit of a twist.

Post by smoky989 »

OK I'm using PHP to build a new website. This website will have user bios. The bios have standard layout. Name, age, dob, etc, etc, etc. I used PHP so when the user submits their bio is created with all their info. It works fine.

Now my question is, is there a way to have the finished html with the actual information, not the PHP code, saved sent to an email address.

In other words if I have a form and I have a field called name and when the form submits a PHP script is called passing whatever is put in that field and displaying it on the new page. I want that new page to be emailed to me with the information on it. Any idea's how to do this, PS I'm new at this so go easy and thanks in advance.
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post by hedge »

yes, with output buffering you can capture the html that would be outputted and then send that string with mail.
Post Reply