Answer to Question #6793 in AJAX | JavaScript | HTML | PHP for Lucy

Question #6793
Write PHP code that reads a string and prints an inverse string.
1
Expert's answer
2012-02-24T08:50:12-0500
Here is the code (file invert.php):

<?
$str = $_REQUEST[string];
$str = strrev($str);
echo($str);
?>

and here is the form that calls this script:

<form action=invert.php>
& lt;input type=text name="string" size=30 value="Input your string">

<input type=submit value="INVERT">
</form>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS