Making simple converter with php
Posted on 2008-02-08
I want to make a php script that would read what a person submitted in a form and change stuff to what I set, such as a converter/encrypter/etc.
The Form -
Text to Convert:
I fill it in as -
Text to Convert: convert this
After being submitted, the php script would change "convert" to "FFconvert" and "this" to "FFthis" .
Basically, I want it like this for example:
$u65 = "A";
$c65 = "chr(65);";
If it finds $u65 (aka the letter A) in the formdata, it would change it to $c65 (aka chr(65);)and output that.
It's basically like a converter except I set what to convert to what.