Help-Php replace characters

Started on the old forum in August 2011 · view the original in the archive · old links redirect here

5 replies · 742 views · started 15 years ago · 1 min read

5 participants
Sifat3d Developer · 66 posts #1

Pls help me with this: i want to make a php script.suppose In a text input box someone writes "a b c" and submits it i need it to be converted via php to "x y z" and displayed. I will define what characters to change. Like i will define that "a" needs to be replaced with "x" and so on. I have already done this in javascript but it only works in pc. I want to make it for mobile thats why it needs to be in php. Please help me someone and maybe provide me an fully functional example script which does this. Thanks in advance.:-)

Fake hack any website,even coding-talk for some clean FUN!!! Try: fake hacking website Mig33 Software for pc: Mig33 for PC mobile games and software download

subzero Super moderator Fellow · 3,954 posts #3

You Nutters can try

$text = preg_replace(' a b c ' , ' x y z ' , $text);

$text = str_replace(' a b c ' , ' x y z ' , $text);

PHP: str_replace - Manual

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sifat3d Developer · 66 posts #4

Confuzed

i don't understand, please explain in an easy manner cause i'm an newbie in php 🙁

Someone enters "a b c"(just an example) in an html form and when he submits my php script converts it to "x y z"(another example). Please help me and post example with the html form 🙁

Fake hack any website,even coding-talk for some clean FUN!!! Try: fake hacking website Mig33 Software for pc: Mig33 for PC mobile games and software download

arnage Lead · 811 posts #5

First u should know how to retrive data from form to variable via _POST, and than use posted examples to replace what u want. Try reading this: php for the absolute beginner

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
ACIDCORE Junior · 30 posts #6

u must start learning php to understand what they are posting..php needs understanding.you sould not just copy and paste it..just a friendly advice..

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close