Re[4]: [PHP] Program that'll parse HTML form with results and send HTML email?
| From: | Tom Rogers | Date: | Tue, 20 Apr 2004 14:18:54 +0000 |
| Subject: | Re[4]: [PHP] Program that'll parse HTML form with results and send HTML email? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183992@lists.php.net to get a copy of this message | ||
Hi,
Wednesday, April 21, 2004, 12:05:08 AM, you wrote:
JWH> I see what you're doing here, but it doesn't fit what I'm looking for
JWH> exactly. You just create a Key : Value list to include in the email. I want
JWH> the email to look exactly like the form, only substitute in the values
JWH> submitted by the user.
JWH> ---John Holmes...
Now I see what you want, the real problem would be select boxes and
radio buttons, the others would be quite easy. looks like a job for
preg_replace_callback() and the worlds ugliest case statement:-)
Have you got a good sample form I could play with? It would be quite a
class. I assume you have access to the original form :)
--
regards,
Tom