martindavey
Programmer
I have 2 forms...
The source form contains the following:-
<form name="sourceform" etc>
...
<input type="file" name="PhotoFile">
...
The destination form contains the following:-
<form name="destform" etc>
...
<input type="hidden" name="PhotoFile">
...
Everything is hidden on the destination form - it has to be this way because it's populated with data from various other forms.
I have a script which roughly does the following:-
<script>
document.all.destform.PhotoFile = document.all.sourceform.PhotoFile
<script>
After this assignment the destform is submitted and the receiving page doesn't receive a file object like it would if I just submitted it from the source form.
What am I doing wrong, how do I assign it to the destform hidden file object?
I've tried .value, but that just whacks the path in as a string - no good.
Help....
The source form contains the following:-
<form name="sourceform" etc>
...
<input type="file" name="PhotoFile">
...
The destination form contains the following:-
<form name="destform" etc>
...
<input type="hidden" name="PhotoFile">
...
Everything is hidden on the destination form - it has to be this way because it's populated with data from various other forms.
I have a script which roughly does the following:-
<script>
document.all.destform.PhotoFile = document.all.sourceform.PhotoFile
<script>
After this assignment the destform is submitted and the receiving page doesn't receive a file object like it would if I just submitted it from the source form.
What am I doing wrong, how do I assign it to the destform hidden file object?
I've tried .value, but that just whacks the path in as a string - no good.
Help....