Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
error
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Fire Juggler
#1
error
Jul 17 '05, 12:16 PM
why does this receive an error?
$conhead .= "From: $_Post["name"] <$_Post["name"]>\r\n";
Daniel Tryba
#2
Jul 17 '05, 12:16 PM
Re: error
Fire Juggler <firejuggler@fi rejugglers.34sp .com> wrote:[color=blue]
> why does this receive an error?
> $conhead .= "From: $_Post["name"] <$_Post["name"]>\r\n";[/color]
PHP: Strings - Manual
http://www.php.net/manual/en/language.types.string.php
Strings
Comment
Post
Cancel
Fire Juggler
#3
Jul 17 '05, 12:16 PM
Re: error
that doesn't help, could u please explain.
"Daniel Tryba" <partmapsswen@i nvalid.tryba.nl > wrote in message
news:4242d3b7$0 $149$c5fe704e@n ews6.xs4all.nl. ..[color=blue]
> Fire Juggler <firejuggler@fi rejugglers.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]
Comment
Post
Cancel
ZeldorBlat
#4
Jul 17 '05, 12:16 PM
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";
Comment
Post
Cancel
Colin McKinnon
#5
Jul 17 '05, 12:16 PM
Re: error
Fire Juggler wrote:
[color=blue]
> that doesn't help, could u please explain.
>
> "Daniel Tryba" <partmapsswen@i nvalid.tryba.nl > wrote in message
> news:4242d3b7$0 $149$c5fe704e@n ews6.xs4all.nl. ..[color=green]
>> Fire Juggler <firejuggler@fi rejugglers.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
Comment
Post
Cancel
ZeldorBlat
#6
Jul 17 '05, 12:16 PM
Re: error
More specifically:
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html#before
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment