Connecting Tech Pros Worldwide Help | Site Map

error

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:16 PM
Fire Juggler
Guest
 
Posts: n/a
Default error

why does this receive an error?
$conhead .= "From: $_Post["name"] <$_Post["name"]>\r\n";



  #2  
Old July 17th, 2005, 12:16 PM
Daniel Tryba
Guest
 
Posts: n/a
Default Re: error

Fire Juggler <firejuggler@firejugglers.34sp.com> wrote:[color=blue]
> why does this receive an error?
> $conhead .= "From: $_Post["name"] <$_Post["name"]>\r\n";[/color]

http://www.php.net/manual/en/language.types.string.php

  #3  
Old July 17th, 2005, 12:16 PM
Fire Juggler
Guest
 
Posts: n/a
Default Re: error

that doesn't help, could u please explain.

"Daniel Tryba" <partmapsswen@invalid.tryba.nl> wrote in message
news:4242d3b7$0$149$c5fe704e@news6.xs4all.nl...[color=blue]
> Fire Juggler <firejuggler@firejugglers.34sp.com> wrote:[color=green]
> > why does this receive an error?
> > $conhead .= "From: $_Post["name"] <$_Post["name"]>\r\n";[/color]
>
> http://www.php.net/manual/en/language.types.string.php
>[/color]


  #4  
Old July 17th, 2005, 12:16 PM
ZeldorBlat
Guest
 
Posts: n/a
Default Re: error

PHP is probably getting confused with the quotes (you have double
quotes inside a double-quoted string. Instead, write:

$conhead .= "From: " . $_POST["name"] . "<" . $_POST["name"] . ">\r\n";

  #5  
Old July 17th, 2005, 12:16 PM
Colin McKinnon
Guest
 
Posts: n/a
Default Re: error

Fire Juggler wrote:
[color=blue]
> that doesn't help, could u please explain.
>
> "Daniel Tryba" <partmapsswen@invalid.tryba.nl> wrote in message
> news:4242d3b7$0$149$c5fe704e@news6.xs4all.nl...[color=green]
>> Fire Juggler <firejuggler@firejugglers.34sp.com> wrote:[color=darkred]
>> > why does this receive an error?
>> > $conhead .= "From: $_Post["name"] <$_Post["name"]>\r\n";[/color]
>>
>> http://www.php.net/manual/en/language.types.string.php
>>[/color][/color]

http://www.catb.org/~esr/faqs/smart-questions.html
  #6  
Old July 17th, 2005, 12:16 PM
ZeldorBlat
Guest
 
Posts: n/a
Default Re: error

More specifically:

http://www.catb.org/~esr/faqs/smart-...ns.html#before

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.