Jump to content

Remove Quotes


dropfaith

Recommended Posts

from user input  i want to remove all single and double qoutes

on input

$Name = mysql_real_escape_string(trim(stripslashes($_POST['Name'])));

on  output

$Name = mysql_escape_string(trim(htmlentities($_GET['Name'])));

 

but no ive decided to just remove all the qoutes right on input  unless you guys have an easier solution on this

 

as it is now if a user inserts a qoute in the movie string it just ends it and then wont link to the article properly

http://lawrenceguide.org/film/profile.php?MovieName=Prozac%20Nation

Link to comment
https://forums.phpfreaks.com/topic/129786-remove-quotes/
Share on other sites

i know mysql escape escapes them

 

thats the system i run thru now

 

but now i want to just remove them

 

say user inputs this into the name field

Allison's Supreme Chocolate Chip Cookies

i want something that turns it into

Allisons Supreme Chocolate Chip Cookies

So i can use the name to link to it like below

Double qoutes currently end the link completly and single quotes just mess it up in the linking

http://lawrenceguide.org/recipes/profile.php?Name=Allisons Supreme Chocolate Chip Cookies

Link to comment
https://forums.phpfreaks.com/topic/129786-remove-quotes/#findComment-672851
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.