apostrophe problem in my form field

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

apostrophe problem in my form field

Post by adsegzy »

am having problem with my apostrophe sign (') in my form field. whenever an apostrophe is inserted in my form (eg can't, don't etc) it will be sent or echoed or store in my database as can/'t or don/'t. what can i do to make it appear the normal way?

regards,
Mince
Forum Commoner
Posts: 25
Joined: Mon Aug 03, 2009 9:36 am

Re: apostrophe problem in my form field

Post by Mince »

It seems you're using the url encode/decode function. that will add the "/"
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

Re: apostrophe problem in my form field

Post by adsegzy »

so waht can i do so that / will not be added again?
Mince
Forum Commoner
Posts: 25
Joined: Mon Aug 03, 2009 9:36 am

Re: apostrophe problem in my form field

Post by Mince »

Well look in your code, are you using the url encode function?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: apostrophe problem in my form field

Post by AbraCadaver »

adsegzy wrote:am having problem with my apostrophe sign (') in my form field. whenever an apostrophe is inserted in my form (eg can't, don't etc) it will be sent or echoed or store in my database as can/'t or don/'t. what can i do to make it appear the normal way?

regards,
viewtopic.php?f=1&t=118802&hilit=+get_m ... pc#p616117
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply