EllisLab text mark
Advanced Search
     
’ character inside input
Posted: 21 November 2012 02:40 AM   [ Ignore ]
Joined: 2012-11-08
19 posts

Hello,

every time I put ’ inside input box and pass it, I get HTTP 500 error (blank page). How Do I avoid this?

I’ve tried checking if ’ in input and then replace it with something else, but I get the problem where ’ character is inside string. ex: Stacy’s project.

 
Posted: 21 November 2012 02:43 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-08-08
524 posts

find the error_log

 Signature 

Stick with it, practice it and have fun with it.

 
Posted: 21 November 2012 02:50 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-19
6267 posts

Handling quote characters in HTML form input fields

 Signature 

Ceritfied State of CT Computer Programming Teacher.
Custom Designed Icons, eBook Covers Software Boxes. CD, DVD Etc. New iPhone® Tab Bar Icons and iPhone® Applications Icons.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

Input -> Controller | Processing -> Model | Output -> View

 
Posted: 21 November 2012 02:55 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2012-11-08
19 posts
InsiteFX - 21 November 2012 02:50 AM

Handling quote characters in HTML form input fields

Release simple and done the job. Thnx.

$namehtmlentities($this->input->post('name'), ENT_QUOTES); 
 
Posted: 21 November 2012 03:11 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2012-11-08
19 posts

...

 
Posted: 21 November 2012 03:38 AM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2007-11-28
2435 posts
Juzt1s - 21 November 2012 03:11 AM

I want to ask something else.

I have a column which contains 1000 characters, but I get only 255 of them. Why is that?

Change your column type to TEXT.