![]() |
| HTML | PHP Scripts | Webmaster Tools | Webmaster Forums | Web Hosting | Domain Names | Webmaster Books |
|
|
#1 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 2
Rep Power: 6 ![]() |
Hi,
I am in desperate need of something for my website. I need a text box that when different words are typed in it takes you to a destination page depending on what you typed in the box. For example: I would like for a person to type in a name like: jacksmith and hitting the go button it would take them to http://www.mywebsite.com/jacksmith.html I do not want a drop down menu as i dont want the other names to be able to see all the other choices. Anyone out there can help me? I would be eternally grateful. ![]() Corma |
|
|
|
|
|
#2 |
|
bald headed old fart
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Webmaster Discussions: 580
Rep Power: 67 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: Need help asap! Greatly appriciated.
Hi there Corma,
and a warm welcome to these forums. ![]() does this help... Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="language" content="english">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<title></title>
<script type="text/javascript">
function goThere(){
df=document.forms[0]
df[1].onclick=function() {
location.href='http://www.mywebsite.com/'+df[0].value+'.html';
}
}
if(window.addEventListener){
window.addEventListener('load',goThere,false);
}
else {
if(window.attachEvent){
window.attachEvent('onload',goThere);
}
}
</script>
</head>
<body>
<form action="#">
<div>
<label>filename: <input type="text"></label>
<input type="button" value="go there">
</div>
</form>
</body>
</html>
__________________
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Oct 2009
Webmaster Discussions: 2
Rep Power: 6 ![]() |
Re: Need help asap! Greatly appriciated.
Thanks so much. You are my hero. This is exactly what i was looking for. Kudos and many thanks.
|
|
|
|
|
|
#4 |
|
bald headed old fart
Join Date: Aug 2003
Location: chertsey, a small town 25 miles south west of london, england.
Webmaster Discussions: 580
Rep Power: 67 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: Need help asap! Greatly appriciated.
No problem, you're very welcome.
__________________
|
|
|
|
|
|
#5 |
|
Banned
Join Date: Oct 2009
Location: Carbondale PA
Webmaster Discussions: 5
Rep Power: 0 ![]() |
Re: Need help asap! Greatly appriciated.
Thanks for the code I needed that one also.
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| appriciated, greatly |
| Thread Tools | |
| Rate This Thread | |
|
|
Similar Webmaster Discussions
|
||||
| Thread | Webmaster Discussion Starter | Forum | Replies | Last Post |
| NEED HELP WIT BAND DIV OVERLAY(asap) | supasteve | Myspace Forum | 1 | 01-05-2009 01:52 AM |
| Help needed with writing user input to a text file using Perl and CGI. Help ASAP! | rustix | CGI Perl Forum | 3 | 11-24-2007 04:51 PM |
| Need an Availablity Script ASAP! | DJ_Melody | Javascript Forum | 1 | 03-11-2007 10:06 PM |
| Need Linking Help ASAP | Maidenjedi | HTML Forum | 4 | 07-16-2001 12:58 PM |