Search found 6 matches

by UserFriendly
Wed Oct 29, 2003 9:48 am
Forum: PHP - Code
Topic: mail() & Blank Form Fields
Replies: 13
Views: 1562

I've done a lot of trial & error and found that this works as a loop for doing the addresses: for ($n = 1; $n < 8; $n++){ eval("\$CAddress = \$Address$n;"); if($CAddress){ $body .= "<tr><td colspan=2>$CAddress</td></tr>"; } } See the rest here: http://cgi.southeringtons.plus....
by UserFriendly
Tue Oct 28, 2003 2:45 pm
Forum: PHP - Code
Topic: mail() & Blank Form Fields
Replies: 13
Views: 1562

More stuff to learn... WooHoo!

That looks pretty useful. I'll give it a go.

-UserFriendly
by UserFriendly
Tue Oct 28, 2003 9:35 am
Forum: PHP - Code
Topic: mail() & Blank Form Fields
Replies: 13
Views: 1562

Here's what I've gone with:

http://cgi.southeringtons.plus.com/sendmail.txt

Long & complicated, but gives me a lot more control over how the email looks. Plus I learnt a lot more while doing it :D

Thanks for all your help.

-UserFrienldy
by UserFriendly
Thu Oct 09, 2003 10:44 am
Forum: PHP - Code
Topic: mail() & Blank Form Fields
Replies: 13
Views: 1562

Thanks.

I'll have a play about and see what happens.

-UserFriendly
by UserFriendly
Thu Oct 09, 2003 10:25 am
Forum: PHP - Code
Topic: mail() & Blank Form Fields
Replies: 13
Views: 1562

Thankyou, that's a great help. This is my first go at PHP... I knew I had to do something along those lines, but wasn't aware of the fact that you could add to variables as you went along (is that what the .= does?). The above code will certainly mean that I will be able to use the script to acheive...
by UserFriendly
Thu Oct 09, 2003 8:07 am
Forum: PHP - Code
Topic: mail() & Blank Form Fields
Replies: 13
Views: 1562

mail() & Blank Form Fields

Hi. This form: http://cgi.southeringtons.plus.com/php/form.htm Submits to this script: http://cgi.southeringtons.plus.com/php/sendmail.txt Please take a look at the code, particulary 'sendmail.txt'. A glance at the form web page will be useful aswell. It's the mail() part of the script that I need h...