wanye
10-21-2002, 07:25 PM
hi, for example i have this piece of code as shown below :
<%
dim objdom
set objdom=server.CreateObject("Msxml2.domdocument")
dim filepath
dim filename
dim objelm
dim objPI
dim objPII
set objPI=objdom.createProcessingInstruction("xml","version=""1.0""")
objdom.appendChild objPI
set objPII=objdom.createProcessingInstruction("xml-stylesheet","type=""text/xsl""")
objdom.appendChild objPII
set objelm=objdom.createElement("content")
objdom.appendChild objelm
set objelm=objdom.createElement("title")
objdom.documentElement.appendChild objelm
set objelm=objdom.createElement("s-title")
objdom.documentElement.appendChild objelm
set objelm=objdom.createElement("flash")
objdom.documentElement.appendChild objelm
objdom.save "C:\flash.xml"
%>
<form action="flash.asp" method="post" >
<h3>Edit your Flash</h3>
<b>Title:<b><input type="text" id="Title" name="Title" style="width: 200px;"><br><br>
<b>Sub Title:<b><input type="text" id="Stitle" name="Stitle" style="width: 170px;"><br><br>
Insert Flash:<input type="file" id="swf" name="swf"><br><br>
Enter your filename: <input type="text" id="txtfilename" name="txtfilename" style="width: 180px;"><br><br>
<input type="submit" id="btnSub" name="btnSub" value="Submit" ><br>
</form>
how do i actually pass the filename that i input through the field as a new option value in a dropdown list menu whenever i click on the "submit btn"..?
is like when i put the 1st filename as xxx1.xml and click submit... it will be something like this
<form name="selection" method="post" action="xxx.asp">
<select name="xmlfield">
<option value="xxx1.xml" >xxx1.xml
</select>
then when put another filename call xxx2.xml, click submit it will become
....
<select name="xmlfield">
<option value="xxx1.xml" >xxx1.xml
<option value="xxx2.xml" >xxx2.xml
</select>
I need help on this badly....thks......
<%
dim objdom
set objdom=server.CreateObject("Msxml2.domdocument")
dim filepath
dim filename
dim objelm
dim objPI
dim objPII
set objPI=objdom.createProcessingInstruction("xml","version=""1.0""")
objdom.appendChild objPI
set objPII=objdom.createProcessingInstruction("xml-stylesheet","type=""text/xsl""")
objdom.appendChild objPII
set objelm=objdom.createElement("content")
objdom.appendChild objelm
set objelm=objdom.createElement("title")
objdom.documentElement.appendChild objelm
set objelm=objdom.createElement("s-title")
objdom.documentElement.appendChild objelm
set objelm=objdom.createElement("flash")
objdom.documentElement.appendChild objelm
objdom.save "C:\flash.xml"
%>
<form action="flash.asp" method="post" >
<h3>Edit your Flash</h3>
<b>Title:<b><input type="text" id="Title" name="Title" style="width: 200px;"><br><br>
<b>Sub Title:<b><input type="text" id="Stitle" name="Stitle" style="width: 170px;"><br><br>
Insert Flash:<input type="file" id="swf" name="swf"><br><br>
Enter your filename: <input type="text" id="txtfilename" name="txtfilename" style="width: 180px;"><br><br>
<input type="submit" id="btnSub" name="btnSub" value="Submit" ><br>
</form>
how do i actually pass the filename that i input through the field as a new option value in a dropdown list menu whenever i click on the "submit btn"..?
is like when i put the 1st filename as xxx1.xml and click submit... it will be something like this
<form name="selection" method="post" action="xxx.asp">
<select name="xmlfield">
<option value="xxx1.xml" >xxx1.xml
</select>
then when put another filename call xxx2.xml, click submit it will become
....
<select name="xmlfield">
<option value="xxx1.xml" >xxx1.xml
<option value="xxx2.xml" >xxx2.xml
</select>
I need help on this badly....thks......