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
Switch to threaded view of this topic 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 next message
Tim is currently offline  Tim
Messages: 13
Registered: March 2011
Karma: 0
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?
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173243 is a reply to message #173210] Tue, 29 March 2011 18:09 Go to previous messageGo to next message
Tim is currently offline  Tim
Messages: 13
Registered: March 2011
Karma: 0
Junior Member
In article <imomst$1pr$1(at)dont-email(dot)me>, Jerry Stuckle
<jstucklex(at)attglobal(dot)net> wrote:

> On 3/27/2011 4:18 PM, Tim wrote:
>
>>
>> Jerry, if you are going to go around calling people "stoopid" maybe you
>> should at least try to keep up with the conversation. If you had you
>> would know that your "get your email working without the php" garbage
>> is not relevant. I stated a couple of postings ago that I was going to
>> do something different, and if you had actually read my last post you
>> would have seen that I said in the very first line that I removed all
>> code having to do with email. (I stated several times, but you refuse
>> to listen, that the email worked fine in every way other than the
>> image. That means the text with no php was working from the beginning.
>> Not that it matters any more.)
>>
>
> I have been keeping up with the conversation. You couldn't get your
> original idea working because you were too stoopid to listen to advice
> to go to the appropriate newsgroup. So now you're trying to get
> something else to work, but failing there too, because you're still
> asking in the wrong place.
>
> And you're too stoopid to understand.
>
> And no, the email did not work. "In every other way but the image" was
> always your problem - and has EVERYTHING to do with email construction
> and NOTHING to do with PHP. But you never listened there, either, and
> got it to work from a plain email message.
>
> And no, it doesn't matter to you because you're still not listening, and
> still not going to get it to work.
>
>> And what makes you think this has anything to do with my line of work?
>> I never said it did. This is just something I thought I might like to
>> do for a site that is not related to my work in any way, shape, or
>> form. Your attitude might be a little more understandable if I were
>> trying to pass myself off as a web developer and leeching off real
>> coders to get by, but that is not the case and you should not have
>> jumped to that conclusion without getting more information.
>>
>
> Then I suggest you let them get somebody competent to do the work for
> them and go back to waiting tables or whatever you do.
>
>> You, sir, are a code-snob. You sit on your throne and look down on
>> anyone who is not at your level of expertise, as you see it, and tell
>> them to figure it out on their own. In my case that is like telling me
>> to become a doctor to get rid of a headache, rather than giving me an
>> aspirin. I would like this one thing for one page on one site. I have
>> no aspirations toward becoming a web developer. I am not a threat to
>> your business. I wouldn't pay someone to do this even if I could afford
>> to. So your hostility toward me is completely unjustified.
>
> Nope. Unlike you, I KNOW what I'm doing. And I try to help people
> where appropriate here, and try to steer them to the appropriate place
> when it is not a PHP problem. But there are always idiots like you who
> think they know everything and refuse to listen to anyone else.
>
> Here's a clue - YOU have the problem, not ME. I would have had this
> fixed within a couple of hours, had it been my job. So would anyone
> with any decent competency in html emails. But you're still going to be
> screwing around in six months because you won't listen to someone more
> knowledgeable than yourself.
>
> Such are stoopid idiots.
>
> Again - my advice - let them get someone HALF-ASSED COMPETENT to do it
> for them. That is NOT YOU.

You're right, Jerry, I will never get it.

After an accumulated time of just over 3 hours, spent skimming
tutorials and tinkering with code, I got it working and it is now live
on my site.

So, let's see. I had never done anything with php before, I spent a
couple of hours skimming tutorials (not really reading them), I got
some sample code, wrote some of my own code, troubleshooted the code,
and got it working, all in less than 4 hours. Yeah, I must be too
"stoopid" to learn.
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173244 is a reply to message #173243] Tue, 29 March 2011 19:16 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 3/29/2011 2:09 PM, Tim wrote:
h are stoopid idiots.
>
> You're right, Jerry, I will never get it.
>
> After an accumulated time of just over 3 hours, spent skimming
> tutorials and tinkering with code, I got it working and it is now live
> on my site.
>
> So, let's see. I had never done anything with php before, I spent a
> couple of hours skimming tutorials (not really reading them), I got
> some sample code, wrote some of my own code, troubleshooted the code,
> and got it working, all in less than 4 hours. Yeah, I must be too
> "stoopid" to learn.

Yes, the thing you couldn't learn is it was NOT a PHP problem. It was a
problem in formatting your email properly. You would have had EXACTLY
the same problem, no matter what language you used!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173245 is a reply to message #173244] Tue, 29 March 2011 19:49 Go to previous messageGo to next message
P E Schoen is currently offline  P E Schoen
Messages: 86
Registered: January 2011
Karma: 0
Member
"Jerry Stuckle" wrote in message news:imtb5p$5jr$1(at)dont-email(dot)me...

> Yes, the thing you couldn't learn is it was NOT a PHP problem. It
> was a problem in formatting your email properly. You would have
> had EXACTLY the same problem, no matter what language you used!

That may be true, but it is counterproductive to call someone "stupid" when
they are a beginner trying to learn how to do something. I am also a
beginner, but fortunately I have a lot of experience in programming, and I
have used that when I had to learn server-side scripting, first in Perl and
then PHP. I've also had to learn a lot about JavaScript, HTML, SQlite, and
even Apache (remote and localhost) server configuration.

Unless a question is totally irrelevant to the particular newsgroup, or if
it involves a highly technical detail that requires specific expert advice,
it seems much more reasonable to (1) simply provide the answer, (2) provide
hints and resources where the answer may be found, or (3) just ignore the
conversation.

Paul
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173246 is a reply to message #173245] Tue, 29 March 2011 20:50 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 3/29/2011 3:49 PM, P E Schoen wrote:
> "Jerry Stuckle" wrote in message news:imtb5p$5jr$1(at)dont-email(dot)me...
>
>> Yes, the thing you couldn't learn is it was NOT a PHP problem. It
>> was a problem in formatting your email properly. You would have
>> had EXACTLY the same problem, no matter what language you used!
>
> That may be true, but it is counterproductive to call someone "stupid"
> when they are a beginner trying to learn how to do something. I am also
> a beginner, but fortunately I have a lot of experience in programming,
> and I have used that when I had to learn server-side scripting, first in
> Perl and then PHP. I've also had to learn a lot about JavaScript, HTML,
> SQlite, and even Apache (remote and localhost) server configuration.
>
> Unless a question is totally irrelevant to the particular newsgroup, or
> if it involves a highly technical detail that requires specific expert
> advice, it seems much more reasonable to (1) simply provide the answer,
> (2) provide hints and resources where the answer may be found, or (3)
> just ignore the conversation.
>
> Paul

Paul,

If you check back, I did, right at first, told him where his problem
lied (in the formatting of the email) and some suggestions as to where
to look for ideas. Others also suggested how to overcome his problem.
Had he done this, he could have had the problem solved the way he wanted
on the very first day.

I called him stupid because he refused to listen to any of that advice,
and kept going on about how this was a PHP problem.

He never did get the original problem solved (which would have been easy
had he followed that advice). Rather he came up with some other
solution (which still doesn't work well).

A smart person, when asking for advice, listens to that advice. A
stupid person just continues going down the wrong way.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173249 is a reply to message #173243] Tue, 29 March 2011 22:38 Go to previous messageGo to next message
Twayne is currently offline  Twayne
Messages: 135
Registered: September 2010
Karma: 0
Senior Member
Bottom Posted: unsnipped to show what's actually being discussed.


In news:290320111309511716%batwzrd(at)hotmail(dot)com,
Tim <batwzrd(at)hotmail(dot)com> typed:
> In article <imomst$1pr$1(at)dont-email(dot)me>, Jerry Stuckle
> <jstucklex(at)attglobal(dot)net> wrote:
>
>> On 3/27/2011 4:18 PM, Tim wrote:
>>
>>>
>>> Jerry, if you are going to go around calling people
>>> "stoopid" maybe you should at least try to keep up with
>>> the conversation. If you had you would know that your
>>> "get your email working without the php" garbage is not
>>> relevant. I stated a couple of postings ago that I was
>>> going to do something different, and if you had
>>> actually read my last post you would have seen that I
>>> said in the very first line that I removed all code
>>> having to do with email. (I stated several times, but
>>> you refuse to listen, that the email worked fine in
>>> every way other than the image. That means the text
>>> with no php was working from the beginning. Not that it
>>> matters any more.)
>>>
>>
>> I have been keeping up with the conversation. You
>> couldn't get your original idea working because you were
>> too stoopid to listen to advice to go to the appropriate
>> newsgroup. So now you're trying to get something else
>> to work, but failing there too, because you're still
>> asking in the wrong place.
>>
>> And you're too stoopid to understand.
>>
>> And no, the email did not work. "In every other way but
>> the image" was always your problem - and has EVERYTHING
>> to do with email construction and NOTHING to do with
>> PHP. But you never listened there, either, and got it
>> to work from a plain email message.
>>
>> And no, it doesn't matter to you because you're still
>> not listening, and still not going to get it to work.
>>
>>> And what makes you think this has anything to do with
>>> my line of work? I never said it did. This is just
>>> something I thought I might like to do for a site that
>>> is not related to my work in any way, shape, or form.
>>> Your attitude might be a little more understandable if
>>> I were trying to pass myself off as a web developer and
>>> leeching off real coders to get by, but that is not the
>>> case and you should not have jumped to that conclusion
>>> without getting more information.
>>>
>>
>> Then I suggest you let them get somebody competent to do
>> the work for them and go back to waiting tables or
>> whatever you do.
>>
>>> You, sir, are a code-snob. You sit on your throne and
>>> look down on anyone who is not at your level of
>>> expertise, as you see it, and tell them to figure it
>>> out on their own. In my case that is like telling me to
>>> become a doctor to get rid of a headache, rather than
>>> giving me an aspirin. I would like this one thing for
>>> one page on one site. I have no aspirations toward
>>> becoming a web developer. I am not a threat to your
>>> business. I wouldn't pay someone to do this even if I
>>> could afford to. So your hostility toward me is
>>> completely unjustified.
>>
>> Nope. Unlike you, I KNOW what I'm doing. And I try to
>> help people where appropriate here, and try to steer
>> them to the appropriate place when it is not a PHP
>> problem. But there are always idiots like you who think
>> they know everything and refuse to listen to anyone
>> else.
>>
>> Here's a clue - YOU have the problem, not ME. I would
>> have had this fixed within a couple of hours, had it
>> been my job. So would anyone with any decent competency
>> in html emails. But you're still going to be screwing
>> around in six months because you won't listen to someone
>> more knowledgeable than yourself.
>>
>> Such are stoopid idiots.
>>
>> Again - my advice - let them get someone HALF-ASSED
>> COMPETENT to do it for them. That is NOT YOU.
>
> You're right, Jerry, I will never get it.
>
> After an accumulated time of just over 3 hours, spent
> skimming tutorials and tinkering with code, I got it
> working and it is now live on my site.
>
> So, let's see. I had never done anything with php before,
> I spent a couple of hours skimming tutorials (not really
> reading them), I got some sample code, wrote some of my
> own code, troubleshooted the code, and got it working,
> all in less than 4 hours. Yeah, I must be too "stoopid"
> to learn.

Don't sweat the small things like stuckie - he's obviously more interested
in trying to get his power from others because he works so hard at creating
idiotic responses and must feel impotent. He's best ignored completely due
to his lack of interpersonal skills. He used to be able to answer a questoin
or two now and then but as of late is nothing but a troll. Ignore him and
he'll eventually go away.


HTH,

Twayne`
Re: CLP - ON TOPIC! - Need PHP form email help, Please! [message #173251 is a reply to message #173249] Wed, 30 March 2011 00:11 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 3/29/2011 6:38 PM, Twayne wrote:
> Bottom Posted: unsnipped to show what's actually being discussed.
>
>
> In news:290320111309511716%batwzrd(at)hotmail(dot)com,
> Tim<batwzrd(at)hotmail(dot)com> typed:
>> In article<imomst$1pr$1(at)dont-email(dot)me>, Jerry Stuckle
>> <jstucklex(at)attglobal(dot)net> wrote:
>>
>>> On 3/27/2011 4:18 PM, Tim wrote:
>>>
>>>>
>>>> Jerry, if you are going to go around calling people
>>>> "stoopid" maybe you should at least try to keep up with
>>>> the conversation. If you had you would know that your
>>>> "get your email working without the php" garbage is not
>>>> relevant. I stated a couple of postings ago that I was
>>>> going to do something different, and if you had
>>>> actually read my last post you would have seen that I
>>>> said in the very first line that I removed all code
>>>> having to do with email. (I stated several times, but
>>>> you refuse to listen, that the email worked fine in
>>>> every way other than the image. That means the text
>>>> with no php was working from the beginning. Not that it
>>>> matters any more.)
>>>>
>>>
>>> I have been keeping up with the conversation. You
>>> couldn't get your original idea working because you were
>>> too stoopid to listen to advice to go to the appropriate
>>> newsgroup. So now you're trying to get something else
>>> to work, but failing there too, because you're still
>>> asking in the wrong place.
>>>
>>> And you're too stoopid to understand.
>>>
>>> And no, the email did not work. "In every other way but
>>> the image" was always your problem - and has EVERYTHING
>>> to do with email construction and NOTHING to do with
>>> PHP. But you never listened there, either, and got it
>>> to work from a plain email message.
>>>
>>> And no, it doesn't matter to you because you're still
>>> not listening, and still not going to get it to work.
>>>
>>>> And what makes you think this has anything to do with
>>>> my line of work? I never said it did. This is just
>>>> something I thought I might like to do for a site that
>>>> is not related to my work in any way, shape, or form.
>>>> Your attitude might be a little more understandable if
>>>> I were trying to pass myself off as a web developer and
>>>> leeching off real coders to get by, but that is not the
>>>> case and you should not have jumped to that conclusion
>>>> without getting more information.
>>>>
>>>
>>> Then I suggest you let them get somebody competent to do
>>> the work for them and go back to waiting tables or
>>> whatever you do.
>>>
>>>> You, sir, are a code-snob. You sit on your throne and
>>>> look down on anyone who is not at your level of
>>>> expertise, as you see it, and tell them to figure it
>>>> out on their own. In my case that is like telling me to
>>>> become a doctor to get rid of a headache, rather than
>>>> giving me an aspirin. I would like this one thing for
>>>> one page on one site. I have no aspirations toward
>>>> becoming a web developer. I am not a threat to your
>>>> business. I wouldn't pay someone to do this even if I
>>>> could afford to. So your hostility toward me is
>>>> completely unjustified.
>>>
>>> Nope. Unlike you, I KNOW what I'm doing. And I try to
>>> help people where appropriate here, and try to steer
>>> them to the appropriate place when it is not a PHP
>>> problem. But there are always idiots like you who think
>>> they know everything and refuse to listen to anyone
>>> else.
>>>
>>> Here's a clue - YOU have the problem, not ME. I would
>>> have had this fixed within a couple of hours, had it
>>> been my job. So would anyone with any decent competency
>>> in html emails. But you're still going to be screwing
>>> around in six months because you won't listen to someone
>>> more knowledgeable than yourself.
>>>
>>> Such are stoopid idiots.
>>>
>>> Again - my advice - let them get someone HALF-ASSED
>>> COMPETENT to do it for them. That is NOT YOU.
>>
>> You're right, Jerry, I will never get it.
>>
>> After an accumulated time of just over 3 hours, spent
>> skimming tutorials and tinkering with code, I got it
>> working and it is now live on my site.
>>
>> So, let's see. I had never done anything with php before,
>> I spent a couple of hours skimming tutorials (not really
>> reading them), I got some sample code, wrote some of my
>> own code, troubleshooted the code, and got it working,
>> all in less than 4 hours. Yeah, I must be too "stoopid"
>> to learn.
>
> Don't sweat the small things like stuckie - he's obviously more interested
> in trying to get his power from others because he works so hard at creating
> idiotic responses and must feel impotent. He's best ignored completely due
> to his lack of interpersonal skills. He used to be able to answer a questoin
> or two now and then but as of late is nothing but a troll. Ignore him and
> he'll eventually go away.
>
>
> HTH,
>
> Twayne`
>
>

No, you have that wrong. I have great interpersonal skills - as my
success as an instructor and in other areas proves.

But I don't give a shit about you or other trolls. You aren't worth the
effort.

And I know that bugs you to no end. But I don't give a shit about that,
either.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Pages (2): [ «    1  2]  Switch to threaded view of this topic Create a new topic Submit Reply
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: Tue Nov 26 00:58:41 GMT 2024

Total time taken to generate the page: 0.03043 seconds