#1 Inversor de link Sáb Out 26, 2013 4:54 pm
Admin
Admin
inveror de link simples e objetivo...
index.php
index.php
- Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inversor de link</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="link.php">
<div align="center">
<table width="563" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="563"><label><em><strong>Cole o link aqui:
</strong></em>
<input name="link" type="text" id="link" size="50" />
<input type="submit" name="button" id="button" value="inverter" />
</label></td>
</tr>
</table>
</div>
</form>
<p align="center">
<label></label>
</p>
</body>
</html>
- Código:
<style type="text/css">
<!--
a:link {
color: #FF0000;
}
a:visited {
color: #FF0000;
}
a:hover {
color: #990000;
}
a:active {
color: #993300;
}
-->
</style>
<div align="center">
<?php
if (($_POST['link'] == ""))
{
echo "<script>history.go(-1);</script>";
}
$link = $_POST['link'];
$invertido = strrev($link);
echo 'O Link invertido é...<br>';
echo "<font color=blue size=6>$invertido</font>";
echo '<br><a href=index.php>Voltar</a>';
?>
</div>