elfranger
10-27-2003, 06:06 AM
Hi all. I hope I am on the right place...
Here is what I am trying to achieve:
I want to have a form with one field and a button.
The field is text, and I am going to enter an eight digit number in it. When I click the button, a new page should appear with an URL which consists of a predefined string, and the infor I put into the field.
I tried like this:
<html><head><title>Test</title></head>
<body bgcolor=#000000 text=#ffffff>
<form name="form" action=javascript:window.open("http://www.gulesider.no/gsi/numberSearch.do?spraak=1&tel=",document.form.number.value) method="POST">
<LABEL for="Nummer">Number:</LABEL>
<input type="text" name="number" size=8 maxlength=8>
<input type="submit" value="Check">
</form>
The predefined bit of the URL is http://www.gulesider.no/gsi/numberSearch.do?spraak=1&tel=
Does anyone know how to make this?
Here is what I am trying to achieve:
I want to have a form with one field and a button.
The field is text, and I am going to enter an eight digit number in it. When I click the button, a new page should appear with an URL which consists of a predefined string, and the infor I put into the field.
I tried like this:
<html><head><title>Test</title></head>
<body bgcolor=#000000 text=#ffffff>
<form name="form" action=javascript:window.open("http://www.gulesider.no/gsi/numberSearch.do?spraak=1&tel=",document.form.number.value) method="POST">
<LABEL for="Nummer">Number:</LABEL>
<input type="text" name="number" size=8 maxlength=8>
<input type="submit" value="Check">
</form>
The predefined bit of the URL is http://www.gulesider.no/gsi/numberSearch.do?spraak=1&tel=
Does anyone know how to make this?