Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Disable commas

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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
squawk
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Jun 14, 2003 1:51 am

Re: Disable commas

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

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

Commas

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

Thanks, will check it out!
squawk
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Jun 14, 2003 1:51 am

Re: Commas

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

don't mention it!
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

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

$text = str_replace(",","",$text);
User avatar
mike
New php-forum User
New php-forum User
 
Posts: 73
Joined: Sun May 04, 2003 4:26 am
Location: Athens


Return to PHP coding => General

Who is online

Users browsing this forum: TurnitinBot [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.