Check The Number is Palindrom of Not Using Php
<html>
<form>
String:<input type="text" name="txtname"><br>
<input type="submit" name="btnsbmt" value="ok">
</form>
</html>
<?php
extract($_REQUEST);
if(isset($btnsbmt))
{
$a=strrev($txtname);
if($a==$txtname)
echo"string is palindrome...";
else
echo"string is not palindrome...";
}
?>
<form>
String:<input type="text" name="txtname"><br>
<input type="submit" name="btnsbmt" value="ok">
</form>
</html>
<?php
extract($_REQUEST);
if(isset($btnsbmt))
{
$a=strrev($txtname);
if($a==$txtname)
echo"string is palindrome...";
else
echo"string is not palindrome...";
}
?>
Check The Number is Palindrom of Not Using Php
Reviewed by Unknown
on
7:43:00 PM
Rating:
php programming samples to learn web development
ReplyDeletephp example | Import Request Variables