Page 1 of 1

Help With Dynamic PHP Agreement Email.

Posted: Fri Jul 25, 2008 7:34 pm
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.

Re: Help With Dynamic PHP Agreement Email.

Posted: Fri Jul 25, 2008 7:35 pm
by Eran
You should read about using forms with PHP: http://www.google.com/search?q=forms+php

Re: Help With Dynamic PHP Agreement Email.

Posted: Fri Jul 25, 2008 7:40 pm
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.

Re: Help With Dynamic PHP Agreement Email.

Posted: Fri Jul 25, 2008 8:26 pm
by Eran
So basically you are looking for someone to code it for you. This should probably be posted in the 'Volunteer work' board

Re: Help With Dynamic PHP Agreement Email.

Posted: Fri Jul 25, 2008 8:33 pm
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.