Simple PHP form - Can't perfect the format of the message

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
squarkman
Forum Newbie
Posts: 4
Joined: Sat Aug 22, 2009 12:16 pm

Simple PHP form - Can't perfect the format of the message

Post by squarkman »

Moved to Programming | Miscellaneous. This has nothing to do with PHP.
There seems to be two 'dead spots' in the message that adds line breaks when I don't want them. Here is a snippet of the code and the results.

code---------
."<br>"
."<br>"
."AIREDALE PREFERENCES"
."<br>"
."Gender preference? = " . $sex
."<br>"
."Age preference?=" . $age
."<br>"
."Size preference? = " . $size
."<br>"
-------------

results
--------------
-------------AIREDALE PREFERENCES----------------------------
Gender preference? =
No
preference
Age preference?=undefine
Size preference? = No preference
--------------

ISSUE IS
see the word NO that is supposed to be to the right of the equal sign? There is an unrequested line break.

Anyone know how this is happening. You see the code and the result.
Thx
squarkman
Forum Newbie
Posts: 4
Joined: Sat Aug 22, 2009 12:16 pm

Re: Simple PHP form - Can't perfect the format of the message

Post by squarkman »

Excuse me? Nothing to do with PHP?? Have you looked at the code? It's PHP code that creates an email message. Care to elaborate on your decision?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Simple PHP form - Can't perfect the format of the message

Post by califdon »

squarkman wrote:Excuse me? Nothing to do with PHP?? Have you looked at the code? It's PHP code that creates an email message. Care to elaborate on your decision?
The only PHP you showed is concatenating a string, which has nothing to do with your problem.
Post Reply