I have a browse page like this:
<from action="output.cfm" enctype="multipart/form-data" method="post">
Browse file:<input name="FileName" type="file">
<input type="submit" value="Enter Data">
</from>
In my output.cfm, I have something like this:
<cffile action="read" file="#Form.FileName#" variable="myxml">
<cffrom action="insert.cfm" method="post" name="form">
---
--
--
<input type="submit" value="insert">
</cfform>
The question is how can I pass the file name variable into my insert.cfm. In other words, insert.cfm cannot read the #form.Filename#. what can be wrong.
Thanks for help?
<from action="output.cfm" enctype="multipart/form-data" method="post">
Browse file:<input name="FileName" type="file">
<input type="submit" value="Enter Data">
</from>
In my output.cfm, I have something like this:
<cffile action="read" file="#Form.FileName#" variable="myxml">
<cffrom action="insert.cfm" method="post" name="form">
---
--
--
<input type="submit" value="insert">
</cfform>
The question is how can I pass the file name variable into my insert.cfm. In other words, insert.cfm cannot read the #form.Filename#. what can be wrong.
Thanks for help?