Are the files on the server?
Here's a simple method where the page posts back to itself, and there are
two files in the same directory on the server named file1.txt and file2.txt.
<%
Dim sFile
sFile = Request.Form("cboFile")
%>
<body>
<form method="post" action="self.asp">
<select name="cboFile" onchange="this.form.submit();">
<option value="file1.txt"<% If sFile = "file1.txt" Then Response.Write "
selected=""selected"""%>>File 1</option>
<option value="file2.txt"<% If sFile = "file2.txt" Then Response.Write "
selected=""selected"""%>>File 2</option>
</select>
<textarea><%If sFile <> "" Then Server.Execute sFile%></textarea>
<input type="submit" />
</form>
Ray at work
"Shaiboy_UK" <sh********@yahoo.co.uk> wrote in message
news:2d**************************@posting.google.c om...
Hi All,
Hope someone can help here!!
I'm putting a standard mail page together, that will allow my users to
sent templete emails out to people. The files are stored in text
files. I have come up with a script to produce the names into a
Select list, but know i'm wanting them to be read into a textarea box,
to allow me to submit them into from the form into the sendmail.asp
page! but the only way i can pass them out, is into a iframe, which
doesn't seem to allow me to then pass them into the sendmail.asp page
for sending.
Anyone help?
Cheers
Shaiboy
sh**************@NOSPAMyahoo.co.uk