Donna
|
| Posted: 05/07/2002, 2:22 PM |
|
I am trying to write a basic event statement which will be used in a much more complex statement later. In my form's BEFORE SHOW event I have written the following statements...
$Part1 = "My name is "Donna.""
When this is placed in a field, I want it to be displayed with quotes around my name. i.e. - My name is "Donna". I have tried about 10 different ways to accomplish this but nothing is working. PLEASE HELP!!!! I'm using PHP.
Thanks!
|
|
|
 |
Donna
|
| Posted: 05/07/2002, 2:35 PM |
|
I had to turn off the html option in the field properties and change the line as follows... $Part1 = "My name is ''Donna ''";
|
|
|
 |
Jay Jackson
|
| Posted: 05/07/2002, 5:05 PM |
|
I'm not using PHP but on VBScript you would replace the quotes in the string with double double qutoes.
$Part1 = "My name is "Donna.""
becomes
Part1 = "My name is ""Donna."""
|
|
|
 |
www.labs4.com
|
| Posted: 05/07/2002, 5:33 PM |
|
add backslashes like this:
$Part1 = "My name is \"Donna.\""
or use html quotes like this
$Part1 = "My name is "Donna.""
or use single quotes like this:
$Part1 = "My name is 'Donna.'"
but sometimes works also this:
$Part1 = "My name is <i>Donna.</i>"
and it looks more profi ;o)
|
|
|
 |
www.labs4.com
|
| Posted: 05/07/2002, 5:41 PM |
|
this is correction of example no.2:
... or use html quotes like this
$Part1 = "My name is & quot; Donna. & quot; "
& and quot; has to be as one word
I will try to backslash it here, maybe it will work
$Part1 = "My name is \"Donna.\""
|
|
|
 |