Thanks for the help! Ok, so I've got this so far:
(Again, this is really my first time coding PHP...so bear with me. I'm more than willing to do the leg work myself, if I could be pointed in the right direction)
Code: Select all
<?php
function createCode {
$code = array("e;A"e;, "e;B"e;, "e;C"e;, "e;D"e;, "e;E"e;, "e;F"e;,
"e;G"e;, "e;H"e;, "e;I"e;, "e;J"e;, "e;K"e;, "e;L"e;, "e;M"e;, "e;N"e;, "e;O"e;,
"e;P"e;, "e;Q"e;, "e;R"e;, "e;S"e;, "e;T"e;, "e;U"e;, "e;V"e;, "e;W"e;, "e;X"e;, "e;Y"e;, "e;Z"e;);
$code_replace = array("e;Y"e;, "e;C"e;, "e;F"e;, "e;Z"e;, "e;I"e;, "e;L"e;,
"e;J"e;, "e;S"e;, "e;X"e;, "e;T"e;, "e;P"e;, "e;N"e;, "e;W"e;, "e;M"e;, "e;U"e;,
"e;B"e;, "e;D"e;, "e;E"e;, "e;G"e;, "e;H"e;, "e;K"e;, "e;O"e;, "e;Q"e;, "e;R"e;, "e;V"e;, "e;A"e;);
$lowercasecode = array("e;a"e;, "e;b"e;, "e;c"e;, "e;d"e;, "e;e"e;, "e;f"e;,
"e;f"e;, "e;g"e;, "e;e"e;, "e;j"e;, "e;k"e;, "e;l"e;, "e;m"e;, "e;n"e;, "e;o"e;,
"e;p"e;, "e;q"e;, "e;r"e;, "e;s"e;, "e;t"e;, "e;u"e;, "e;v"e;, "e;w"e;, "e;x"e;, "e;y"e;, "e;z"e;);
$lowercasecode_replace = array("e;y"e;, "e;c"e;, "e;f"e;, "e;z"e;, "e;i"e;, "e;l"e;,
"e;j"e;, "e;s"e;, "e;x"e;, "e;t"e;, "e;p"e;, "e;n"e;, "e;w"e;, "e;m"e;, "e;u"e;,
"e;b"e;, "e;d"e;, "e;e"e;, "e;g"e;, "e;h"e;, "e;k"e;, "e;o"e;, "e;q"e;, "e;r"e;, "e;v"e;, "e;a"e;);
}
And here is the page I want it to go in:
Code: Select all
<html>
<head>
<title>Transcoding Utility</title>
<meta http-equiv="e;Content-Type"e; content="e;text/html; charset=iso-8859-1"e;>
</head>
<body bgcolor="e;#666666"e;>
<table width="e;75%"e; height="e;401"e; border="e;0"e;>
<tr>
<td width="e;49%"e; height="e;332"e; align="e;left"e; valign="e;top"e;>
<p><font color="e;#FFFFFF"e; size="e;4"e; face="e;Verdana, Arial, Helvetica, sans-serif"e;>Transcode</font></p>
<p><textarea name="e;textbox1"e; cols="e;50"e; rows="e;10"e; id="e;textbox1"e;></textarea>
<br>
<input name="e;transcode"e; type="e;submit"e; id="e;transcode"e; value="e;Transcode"e;>
</p>
</td>
<td width="e;51%"e; align="e;right"e; valign="e;top"e;>
<p><font color="e;#FFFFFF"e; size="e;4"e; face="e;Verdana, Arial, Helvetica, sans-serif"e;>Reverse
Transcode</font></p>
<p>
<textarea name="e;textbox2"e; cols="e;50"e; rows="e;10"e; id="e;textbox2"e;></textarea>
<br>
<input name="e;rev_transcode"e; type="e;submit"e; id="e;rev_transcode"e; value="e;Reverse Transcode"e;>
</p>
</td>
</tr>
</table>
</body>
</html>
What should I do next to implement the PHP, and to echo the transcode?
(The php code I put above would only be for the first "transcode" area on the page, I can just duplicate that for the second "Reverse transcode".)
Edit note: added in the php a lowercase array in case the user inputs lowercase letters.