transfer data between web pages
I have a page which have a form,and the form comtain a select which enable multiple select:
<html lang="en" xmlns="htt开发者_如何学Cp://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-type">
</head>
<body>
<form action="xx.action">
1:name:<input type="text" name="user.name"/>
childs:<select multiple="multiple" name=user.childs.name>
<option value="01">01xxx</option>
<option value="02">02eee</option>
</select><br/>
2:name:<input type="text" name="user.name"/>
childs:<select multiple="multiple" user.childs.name>
<option value="01">01xxx</option>
<option value="02">02eee</option>
</select>
</form>
</body>
</html>
In the example, the "childs" will submit more than one item to the server.
Now since the item is too many,so I want the user choose item in a new page:
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-type">
</head>
<body>
<form action="xx.action">
1:name:<input type="text" name="user.name"/>
childs:<input type="text" />
<input type="button" value="choose childs" />
<br/>
2:name:<input type="text" name="user.name"/>
childs:<input type="text" />
<input type="button" value="choose childs" />
</form>
</body>
</html>
But I can not make the result selected in the new page displayed in the former page.
I know the window.opener
,but how to make the result from user sent to the server?
精彩评论