RE: [PHP] Problem when displaying the $ character
It is the same thing. trim() is enough to make it work. Maxim Maletsky www.PHPBeginner.com -Original Message- From: Mauricio T?llez Jim?nez [mailto:[EMAIL PROTECTED]] On Behalf Of EDUMEXICO Sent: mercoledì 3 ottobre 2001 19.53 To: Dominik Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Problem when displaying the $ character Hi, try this: Item 1 Item 2 "; ?> I hope this can help you. Cheers On Wed, Oct 03, 2001 at 11:08:27AM -0700, Dominik wrote: > Through php, I run a function that creates a list of items in a select > menu as follows: > > > ">Item 1 > ">Item 2 > > but here is how the source code looks: > > > Item 1 > Item 2 > > > It looks like php takes the $ character and inserts a return for it. > This though disrupts the value of the form element. Is there anyway > to make this code appear like it should (with the option tag all on > one line instead of 2)? > > Thanks! > Dominik > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Mauricio Téllez Jiménez Seguimiento Técnico EDUMEXICO [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Zamora No. 25, Col. Centro C.P. 91000, Xalapa, Ver. Tel. 52(28)17-86-87, 17-73-80 Fax. 52(28)18-64-13 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problem when displaying the $ character
Hi, try this: Item 1 Item 2 "; ?> I hope this can help you. Cheers On Wed, Oct 03, 2001 at 11:08:27AM -0700, Dominik wrote: > Through php, I run a function that creates a list of items in a select menu > as follows: > > > ">Item 1 > ">Item 2 > > > but here is how the source code looks: > > > Item 1 > Item 2 > > > It looks like php takes the $ character and inserts a return for it. This > though disrupts the value of the form element. Is there anyway to make this > code appear like it should (with the option tag all on one line instead of > 2)? > > Thanks! > Dominik > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Mauricio Téllez Jiménez Seguimiento Técnico EDUMEXICO [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Zamora No. 25, Col. Centro C.P. 91000, Xalapa, Ver. Tel. 52(28)17-86-87, 17-73-80 Fax. 52(28)18-64-13 PGP signature
Re: [PHP] Problem when displaying the $ character
This assumption is incorrect, these are just variables that most likely contain unwanted whitespace, such as a \n. Consider using trim() beforehand. Maybe I misunderstand your question. Also, no need for "" when printing variables directly like that. echo $foo; Regards, Philip Olson On Wed, 3 Oct 2001, Dominik wrote: > Through php, I run a function that creates a list of items in a select menu > as follows: > > > ">Item 1 > ">Item 2 > > > but here is how the source code looks: > > > Item 1 > Item 2 > > > It looks like php takes the $ character and inserts a return for it. This > though disrupts the value of the form element. Is there anyway to make this > code appear like it should (with the option tag all on one line instead of > 2)? > > Thanks! > Dominik > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Problem when displaying the $ character
Through php, I run a function that creates a list of items in a select menu as follows: ">Item 1 ">Item 2 but here is how the source code looks: Item 1 Item 2 It looks like php takes the $ character and inserts a return for it. This though disrupts the value of the form element. Is there anyway to make this code appear like it should (with the option tag all on one line instead of 2)? Thanks! Dominik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]