Disable commas

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

squawk
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Jun 14, 2003 1:51 am

Disable commas

Postby squawk » Sat Jun 14, 2003 1:59 am

Hi everyone,

came across a small problem which requires a little help. Got a website with an input form that writes to & publishes a CSV. Works great, except when someone fills out my form and uses a comma. This screws up my CSV result.

Anyone know of a simple "disable comma" script?

Thanks much!!
Peter

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Disable commas

Postby WiZARD » Sat Jun 14, 2003 2:52 am


squawk
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Jun 14, 2003 1:51 am

Commas

Postby squawk » Thu Jun 19, 2003 9:06 am

Thanks, will check it out!

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Commas

Postby WiZARD » Thu Jun 19, 2003 10:32 pm

don't mention it!

User avatar
mike
New php-forum User
New php-forum User
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens
Contact:

Postby mike » Sun Jun 22, 2003 3:55 pm

$text = str_replace(",","",$text);


Return to “PHP coding => General”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 2 guests