Page 1 of 1

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

Posted: Sat Aug 22, 2009 12:35 pm
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

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

Posted: Sat Aug 22, 2009 3:07 pm
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?

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

Posted: Sat Aug 22, 2009 4:49 pm
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.