Re: [PHP] Dollar signs in values

2003-03-07 Thread Jim Lucas
How are you including the file in question? Jim - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Thursday, March 06, 2003 9:58 PM Subject: [PHP] Dollar signs in values How is it I can properly get PHP to represent dollar signs when putting

[PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
How is it I can properly get PHP to represent dollar signs when putting it into HTML? I know that dollar signs denote the beginning of a variable, like $reference or $ftpstream or whatever. However, I have a text file that contains (or can contain) values with $ in them. When I open the file

Re: [PHP] Dollar signs in values

2003-03-06 Thread Ernest E Vogelsinger
At 06:58 07.03.2003, Liam Gibbs said: [snip] How is it I can properly get PHP to represent dollar signs when putting it into HTML? I know that dollar signs denote the beginning of a variable, like $reference or $ftpstream or whatever. However, I have a

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 13:58, Liam Gibbs wrote: How is it I can properly get PHP to represent dollar signs when putting it into HTML? I know that dollar signs denote the beginning of a variable, like $reference or $ftpstream or whatever. However, I have a text file that contains (or can

Re: [PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
Escape them with a backslash: $text = The amount is \$400.-; All that does is print \$ in my HTML. What's going on is that it will put, say, RR$T into a file when that's typed into a textbox or any typable form control. That's properly saved in the file. So the file will contain RR$T. When

RE: [PHP] Dollar signs in values

2003-03-06 Thread Martin Towell
code snippets would be helpful -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: Friday, March 07, 2003 5:07 PM To: php list Subject: Re: [PHP] Dollar signs in values Escape them with a backslash: $text = The amount is \$400.-; All that does is print \$ in my

Re: [PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
Could you show some code to illustrate the unpredictable results that you get? Here's what I have in my file: [EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December, 2003~on~fjskl It's first exploded() by ~, then those values are produced by print() statements, like this one:

Re: [PHP] Dollar signs in values

2003-03-06 Thread Liam Gibbs
I'll try the single quotation mark method first, though. Single quotations didn't seem to work either. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 14:13, Liam Gibbs wrote: Could you show some code to illustrate the unpredictable results that you get? Here's what I have in my file: [EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December, 2003~on~fjskl It's first exploded() by ~, What does

RE: [PHP] Dollar signs in values

2003-03-06 Thread Niklas Lampén
print htmlspecialchars([EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December, 2003~on~fjskl); Niklas -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED] Sent: 7. maaliskuuta 2003 8:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] Dollar signs in values Could you

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason k Larson
And what about: print htmlspecialchars('[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December,2003~on~fjskl'); It seems to work for me. -- Jason k Larson Niklas Lampén wrote: print htmlspecialchars([EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December,

RE: [PHP] Dollar signs in values

2003-03-06 Thread Niklas Lampén
Subject: Re: [PHP] Dollar signs in values And what about: print htmlspecialchars('[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December,2003~on ~fjskl'); It seems to work for me. -- Jason k Larson Niklas Lampén wrote: print htmlspecialchars([EMAIL PROTECTED]@#%:[EMAIL PROTECTED