PDA

View Full Version : Multi use form not working



Jacka
Jan 28th, 2007, 12:25 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>

<title>Title</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="favicon.ico" rel="shortcut icon" />

<link type="text/css" href="style.css" rel="stylesheet" />

</head>

<body>

<form name="form" action="http://hiscore-web.runescape.com/lang/en/aff/runescape/hiscorepersonal.ws" method="POST" target="highscores">
<input name="highscores" size="12" type="text" name="user1" value="User or URL">
<input type="button" value="URL" onClick="parent.highscores.location=form.highscores.value">
</form>

</body>

</html>

The URL now loads properly (you must prefix with http://, maybe there is a way around that?), but when a username is inserted, and you press enter/return on the keyboard to search the highscores, it does not work.

Can anybody offer a solution?

Many thanks in advance, Jack.

Jacka
Jan 28th, 2007, 12:28 AM
Nevermind, it was a stupid error of giving the text input 2 names!

<input name="highscores" size="12" type="text" name="user1" value="User or URL">