<script language="JavaScript">
<!-- Begin
function reverse(form) {
text = "";
str = form.revtext.value;
for (i = 0; i <= str.length; i++)
text = str.substring(i, i+1) + text;
form.revtext.value = text;
}
// End -->
</script>
<form>
<textarea rows="4" cols="20" value="hello" name="revtext" type="text"></textarea>
<input value="Reverse" onclick="reverse(this.form)" type="button"/>
</form>
write in reverse
Started on the old forum in August 2009 · view the original in the archive · old links redirect here
icen01 wrote: what is this script, and what is this fucti0n reverse for what
nothing more important it just type text in reverse
Yeah it wnt. For reversing strings in php use strrev("oaml noog uoy php reporp nrael og");