通过提交文本输入超链接

时间:2019-03-06 03:51:54

标签: javascript html css

我正在做一个调查表,其中特定的答案将通过提交链接到我的其他网页。 如何在文本输入中超链接特定的答案,以便在用户单击提交时将其发送到特定于用户给出的答案的页面?我对html / css还是陌生的,只做过一点js。对于某些相关问题,我找到了不同的答案,但并不是真正针对我想要的。

这是我到目前为止所拥有的:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="index.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<center><h1>Friendship Evaluator</h1></center>
<table width="60%" border="0">
  <tbody>
    <tr>
      <td><h3>Choose your best friend:</h3>
<strong>
<p>Filip</p>
<p>David</p>
<p>Christopher</p>
</strong>
<p>Now type your <b>besties</b> name and pick a dish</p>
<form action="submit-friend">
<label for="Pizza"> 
  <input id="Pizza" type="radio" name="Pizza-Lasagna">Pizza 
</label>
<label for="Lasagna"> 
  <input id="Lasagna" type="radio" name="Pizza-Lasagna">Lasagna 
</label>
<br>

<input type="text" placeholder="Favorite Friend" required>
<button type="submit">Submit</button>
</form></td>
    </tr>
  </tbody>
</table>


</body>
</html>

0 个答案:

没有答案