Printing welcome message and then reverse the string


echo "<form name=f1 method=post action=''>
<input type=text name=t1><input type=submit value='Submit'></form>";
$t1=$_POST['t1']; // Collect the string as entered by user
if(strlen($t1) > 1 ){ // If the length of the string is more than 1
echo "Welcome $t1<br>
Your name in reverse : ".strrev($t1);
}


All Basic Codes
Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer