Help With Dynamic PHP Agreement Email.

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
DamienRoche
Forum Newbie
Posts: 3
Joined: Fri Jul 25, 2008 7:32 pm

Help With Dynamic PHP Agreement Email.

Post by DamienRoche »

Specs.

The form will function similar to a contact form except the fields entered will have to be dynamically 'posted' in a document. It will also be in a HTML email.

To clarify.

I will send an email to a client with a blank agreement doc...featured in an inner window. Below the doc will be fields ...name, number, address etc.
with a submit button at the bottom.

Once the fields have been completed, and the user presses the submit button, I want the details in the field to be entered into the correct places in the doc and have that sent to an email address.

I'm hoping this will be done using $_post, $_get, or $request.

Can any one advise how to best approach this??

Any help is very much appreciated.
Last edited by DamienRoche on Fri Jul 25, 2008 7:42 pm, edited 1 time in total.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Help With Dynamic PHP Agreement Email.

Post by Eran »

You should read about using forms with PHP: http://www.google.com/search?q=forms+php
DamienRoche
Forum Newbie
Posts: 3
Joined: Fri Jul 25, 2008 7:32 pm

Re: Help With Dynamic PHP Agreement Email.

Post by DamienRoche »

I am, thanks. I can't just read about it and hope I grasp the concepts. I need somebody to tell me how I should go about it.

Thanks for your input.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Help With Dynamic PHP Agreement Email.

Post by Eran »

So basically you are looking for someone to code it for you. This should probably be posted in the 'Volunteer work' board
DamienRoche
Forum Newbie
Posts: 3
Joined: Fri Jul 25, 2008 7:32 pm

Re: Help With Dynamic PHP Agreement Email.

Post by DamienRoche »

No. I'm willing to pay if need be.

Can you help me with the problem?

I can edit php but I can't code it from scratch. I'm constantly running into little errors.

For example.

$body = "Name: $name\n Age: $age\n
\n
\nMy name is $name, I am $age years old";

echo "<strong>Thanks ".$name; echo ", we will contact you shortly.</strong>";
mail($to, $subject, $body);

How do I style what I put in the $body section?

It seems I can only style elements if I use echo first, yet I can't find out how to use it after $body = "

Thanks,

Damien.
Post Reply