帮忙写一小段ASP代码

来源:百度知道 编辑:UC知道 时间:2024/09/27 23:31:51
首先有个表单,表单里面有两个本文框,现在要实现按下提交后,网页跳转到“http://www.abc.com/第一个本文框内容/第二个本文框内容”,帮忙写一下~~谢谢

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<script language="javascript">
function tijiao()
{
if (form1.aaa.value!="" && form1.bbb.value!="")
location.href="http://www.abc.com/" + form1.aaa.value + "/" + form1.bbb.value
else
alert("请输入文本框内容")
}
<