FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » CLP - ON TOPIC! - Need PHP form email help, Please!
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173242 is a reply to message #173212] Tue, 29 March 2011 18:01 Go to previous messageGo to previous message
Tim is currently offline  Tim
Messages: 13
Registered: March 2011
Karma:
Junior Member
In article <imovs2$80i$1(at)speranza(dot)aioe(dot)org>, P E Schoen
<paul(at)pstech-inc(dot)com> wrote:

> "P E Schoen" wrote in message news:imou4g$4t1$1(at)speranza(dot)aioe(dot)org...
>
> $heredoc = <<<HEREDOC
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>$hTitle</title>
> </head>
> <body>
> <h1>$title</h1>
> $msg
> </body>
> </html>
> HEREDOC;
>
> Actually this is a HEREDOC, which expands the variables within the
> delimiters. The NOWDOC uses the following syntax:
>
> $value = "Hello World!";
> $var = <<<'LABEL'
> $value
> LABEL;
>
> For more information, see:
> http://usrportage.de/archives/884-NOWDOC-+-double-quotes-HEREDOC.html
> http://www.electrictoolbox.com/php-nowdoc-string/
> http://www.electrictoolbox.com/php-heredoc-string/
> http://php.net/manual/en/language.types.string.php
>
> Paul
>
Thanks Paul, I have it working now, but I will look into the more
elegant solution. The only question now is when do I send the email.
There is a delay after clicking the submit button, the length of which
depends on the size of the image file, so I really don't want to make
it longer. I have thought about putting the code on the success page to
actually send the email. I am trying to consider the possible events
that may prevent it from getting done.

If I put it on the next page but don't use sessions, I can have it just
search the directory and send whatever it finds, then delete it. But
what happens if two people are doing it at the same time? Is that
likely enough to worry about? Would putting it on the same form handler
have enough of an effect to justify moving it to the other page?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ip address of client
Next Topic: Islandnet.com dropping support for PHP4
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 15:54:32 GMT 2024

Total time taken to generate the page: 0.04686 seconds