ekgartdirector Posted October 2, 2008 Share Posted October 2, 2008 To anyone that can help! I have built a online magazine subscription application. The final process of my application is to transfer someone to paypal with the correct price. The price gets calculated by the user's address(province/country). When someone enters a "#" into the address input field the prize doesn't reflect properly. The value gets stored correctly. For example if you entered "Rosethorn crescent #3" it goes into the database exactly like that but then the price doesnt get reflected properly. I was hoping someone could help me figure out a way to remove the # signs from the value before it gets stored into the database. Please help! Thanks, Mike Link to comment https://forums.phpfreaks.com/topic/126758-escaping-the-sign-please-help/ Share on other sites More sharing options...
JonnoTheDev Posted October 2, 2008 Share Posted October 2, 2008 $value = str_replace("#","", $value); Link to comment https://forums.phpfreaks.com/topic/126758-escaping-the-sign-please-help/#findComment-655684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.