/    Sign up×
Community /Pin to ProfileBookmark

I have designed a basic webpage on frontpage. On this i have put in a search box, where if you type in a certain code it will bring up information via webpage, ([url]http://pbs708/rmsfaultmonitoring/CallDetails.asp?Description=[/url][color=”#0000FF”]RB260086[/color]). The part of my URL that is in blue is the code and this is what will be entered within the search box, so by entering this code into the box it will change the code at the end of the URL, therefore bringing up the correct information for the certain code entered.
Please could someone point me in the correct direction of getting this to work. Thanks!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMar 02.2007 — <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Redirect</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript">
function redirect(code) {
location.href='http://pbs708/rmsfaultmonitoring/CallDetails.asp?Description='+code;
return false;
}
</script>

</head>
<body>
<form action="#" onsubmit="return redirect(this.description.value);" name="form1">
<div>
<input type="text" name="description">
<button type="submit">submit</button>
</div>
</form>
</body>
</html>
×

Success!

Help @wil123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...