Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string concatenation

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all,

i have a variable that contains a string containing a "=" character.
for exemple my string is "toto=tata"
when i put this string in a cookie it bugs.
when i put the string in a cookie without the "=" char (when i put only "tototata") that works

i guess that with the "=" the program tries to compare toto with tata, or to make a concatenation or something else, and that's why it bugs...

what can i do to have the "=" char in my string ??
is there a way to keep the "=" in it ? (like with an ascii code for exemple) .... Best regards X-),
Elise
 
try "\="
or the ascii code, but i don't remember it (chr(??))
 
well i've found the problem, after many tried
it'sn ot a javascript problem, it seems that when i send this data on the cookie, the = is interpreted like a equality i guess...
all the other characters are okay...
i found a way to avoid this problem, but i'm curious to know why does cookies don't stand "=" in a string.. Best regards X-),
Elise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top