I want to make a page where I can enter any e-mail address, and then click a button, and it will output the e-mail address as 7-BIT ASCII onto the page.
A HTML 7-BIT ASCII Reference can be found at http://www.w3schools.com/html/html_asciiref.asp.
I only want it to convert these characters:
a-z
0-9
@
.
_
Here is a base template that I made:
<html>
<head>
<title>E-mail Address Encoder 1.0</title>
</head>
<body>
<form method="post" action="encode.php">
<p><b>E-mail Address Encoder 1.0</b></p>
<p><input type="text" name="address" size="30"></p>
<p><input type="submit" name="action" value="Encode"></p>
<?php
if($action=="Encode")
{
}
?>
</form>
</body>
</html>
I have tried working with str_replace and eregi_replace but I'm not getting anywhere.
Thanks.