SpiderPhp

Just another WordPress weblog

Posts Tagged ‘Characters’

i need a script that does that.

I’m trying to make special characters allowed, but when they are entered into a form, they don’t do anything with the code, in which they are processed through. Kinda like on this form that I’m typing. I can enter all the code I want, but when it submits, it will appear as I have typed it. Any ideas? examples would be great.
I believe it has something to do with regular expressions in PHP, and I have read mutiple websites about how to do this, but I just don’t get it. Please help.

Use Php To Replace Characters In A String?

Posted Monday, July 6th, 2009
Tags: , ,
Posted in Uncategorized | 3 Comments »

I need to create a form for a website that asks for your address, city, state, and zip code, and when you click submit it will redirect you to a mapquest page that has already loaded directions from your address to a local business. Mapquest requires that there be no spaces, just plus signs. How can I write a script in PHP to replace something like “1234 Example Street” to “1234+Example+Street”?

How Do I Add A Character Every X Characters In Php?

Posted Friday, June 19th, 2009
Tags: , ,
Posted in Uncategorized | No Comments »

When I display some info, in order to keep it from extending table rows I’d like to add a space or a hyphen every 40 characters in a PHP string. I’m sure there’s a way to do this, but I can’t figure it out. Can anyone help? Thanks.

I would like to know if it is possible to check with php if a string of text contains one word that is longer than 50 characters, just because it would come out of the div since it would be too long, and have no spaces.
If it is possible, any ideas on how to fix this problem?

How To Use Php Script And Show Japanese Characters ?

Posted Saturday, June 6th, 2009
Tags: , , ,
Posted in Uncategorized | 1 Comment »

I used echo and it doesn’t work
I use varbinary field to store the japanese characters. It saved well, but the php doesn’t work.