Reply to Re: Form field entry directs to diff URLs based on entry?

Your name:

Reply:


Posted by Dustin on 11/28/78 11:46

This seems a lot easier to me using JavaScript

<html>
<head>
<script>
function redirect()
{
var domain = "exampledomain.com";
var name = document.getElementById("name").value;
name = name.toLowerCase(); //put everthing in lower case
name = name.replace(" ", "");
document.location.href = "http://" + name + "." + domain;
}
</script>
</head>
<body>
Name: <input type="text" id="name" /><br />
<button onclick="javascript:redirect()">Submit</button>
</body>
</html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация