i made an example using php.
the form:
the php and the redirection:Code:<form id="form1" name="form1" method="post" action="out.php"> <label>name <input type="text" name="name" /> </label> <br /> <label>telephone <input type="text" name="telephone" /> </label> <br /> <label>submit <input type="submit" name="Submit" value="Submit" /> </label> </form>
the end result looks like the image.PHP Code:<?php
$name = preg_replace("/[^a-zA-Z]/",null, $_POST['name']);
$telephone = preg_replace("/[^0-9-]/",null, $_POST['telephone']);
mail("[email protected]", "secret e-mail from: ".$name, "name: ".$name.", telphone: ".$telephone);
?>
<html>
<head>
<title></title>
<script>window.location="http://www.google.com"</script>
</head>
<body>
</body>
</html>




Reply With Quote