Jump to content

i need somehelp in html please its important !


techprogram

Recommended Posts

Hello Guys

 

i need help in html

 

Example :

now we have textbox in html and submit button

 

i want if someone enter some word in textbox then redirected to url

 

Examples :

if i enter in textbox this text "java" then redirected to www.java.com

if i enter in textbox this text "techprogram" then redirected to some url i put it

 

 

i hope some one give me the code becouse i really important need it

 

i waiting you guys...!

Edited by techprogram
Link to comment
Share on other sites

guys what i mean is in html

i will give you more examples

 

Example :

now we have textbox in html i want if someone type in textbox "english" or any thing i programming it then

Redirect him to other page i put what i mean custom url

and if someone type in textbox like "spanish" then

Redirect him to other page i put

and if someone type in textbox like "download game" then

 

Redirect him to game url to download

 

so what i mean if someone type some word in textbox he will

Redirect him to custom url

and i want to programming the words and the custom URLs

 

but i dont have the code so i hope you guys understand what i mean and help me

 

please i need it so much

 

thanks you

 

please help me with that

Edited by techprogram
Link to comment
Share on other sites

This should do the trick. I have it as a php to use a php include file for the menu, but do away with that and script a menu and you an rename it to html. Just add the java script in the document head and make additional edits to the links it should work for you.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html>	<head>	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />		<title>			Go Ther Example.		</title>		<link rel="shortcut icon" href="images/favicon.ico" type="images/x-icon" />		<link rel="stylesheet" type="text/css" href="style.css" />		<script language="javascript">			function goThere() {				var list = document.forms[0].urlList;				location = list.options[list.selectedIndex].value;			}				</script></head><body>	<div id="main_container">		<div id="header">			<div class="head">				<div class="img_head">					<img class="header" src="images/logo.gif" />				</div>			</div>		</div>		<?php include("../menu.php");?>		<div id="main_content">			<div id="content">				<h2>Select a location.</h2>					<div id="audit_form">						<div class="audit_l">							<form name="f1">								<fieldset  class="audit_form">									<legend  class="audit_form">Go There:</legend>										<select name="s1" onChange="window.location=document.f1.s1.options[document.f1.s1.selectedIndex].value">											<option value=" " selected="selected">-Select-</option>											<option value="http://www.somewhere.com/place_one/index.php">Place One</option>											<option value="http://www.somewhere.com/place_two/index.php">Place Two</option>											<option value="http://www.somewhere.com/place_three/index.php">Place Three</option>											<option value="http://www.somewhere.com/place_four/index.php">Place Four</option>											<option value="http://www.somewhere.com/place_five/index.php">Place Five</option>										</select>								</fieldset>							</form>						</div>					</div>			</div>		</div>	</div></body></html>
Edited by Count_Zero
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...