Skip navigation
rgallatin
Currently Being Moderated

Including Upload File in Form

Apr 27, 2011 11:48 AM

I need my form to choose a file from a visitor's input then upload the file to my hard drive for use on a customized member page. Can this be done in Dreamweaver? HTML only? It seems like such a simple task, but I cannot get the form to upload a file. The code below handles all the text fields and correctly selects a file, but it will not upload the file to my HD. Am I using bad code (erroneous input type) or is there a larger problem (such as a need for custom script like php)?

 

<form action="http://us.1.p9.webhosting.yahoo.com/forms?login=richard_gallatin" method="post" class="form760right">

        <div class="formtitle">

<div class="formidtitle"><a href="#"><img src="/myavanti/title_Aicon.jpg" alt="Avanti" width="40" height="40" border="0" onclick="MM_openBrWindow('/myavanti_home.html','myavantiwindow','scro llbars=yes,resizable=yes,width=1024,height=800')" /></a></div>

<br />

Create or Renew A Personal [My] Avanti Page</div>

        <div class="formid" id="firstname">First Name*</div>

        <div class="formfield">

          <input name="first_name" type="text" id="first_name" size="25" maxlength="25" />

        </div>

        <div class="formid"><span class="tabletext">Middle Initia</span>l</div>

        <div class="formfield">

          <input name="middle_initial" type="text" id="middle_initial" size="2" maxlength="2" />

        </div>

        <div class="formid"><span class="tabletext">Last Name*</span></div>

        <div class="formfield">

          <input name="last_name" type="text" id="last_name" size="25" maxlength="25" />

        </div>

        <div class="formid">User ID</div>

        <div class="formfield">

          <input name="userid" type="text" id="userid" size="25" maxlength="25" />

        </div>

<div class="formid"><span class="tabletext">Email Address*</span></div>

        <div class="formfield">

          <input name="email" type="text" id="email" size="50" maxlength="50" />

        </div>

        <div class="formid"><span class="tabletext" id="telephone">Telephone</span></div>

        <div class="formfield" id="telephone2">

          <input name="telephone_number" type="text" id="telephone_number" size="14" maxlength="14" />

        </div>

        <div class="formtitle">

          <div class="formidtitle"><a href="#"><img src="/myavanti/title_Aicon.jpg" alt="Avanti" width="40" height="40" border="0" onclick="MM_openBrWindow('/myavanti_home.html','myavantiwindow','scro llbars=yes,resizable=yes,width=1024,height=800')" /></a></div>

          <br />

        Enter A Description For Your [My] Avanti Page</div>

<div class="formid5" id="question8">Write the description for your Avanti. Enter at least 100 characters but not more than 250. </div>

        <div class="formfield5" id="answer8">

          <textarea name="changes" id="changes" cols="45" rows="5">[My] Avanti </textarea>

        </div>

        <div class="formtitle">

          <div class="formidtitle"><a href="#"><img src="/myavanti/title_Aicon.jpg" alt="Avanti" width="40" height="40" border="0" onclick="MM_openBrWindow('/myavanti_home.html','myavantiwindow','scro llbars=yes,resizable=yes,width=1024,height=800')" /></a></div>

          <br />Select Photos For Your [My] Avanti Page</div>

 

        <div class="formid2">Select and Send photo file one* (first choice required)</div>

        <div class="formfield2"> Photo One

          <input type="file" name="myphoto1" id="myphoto1" size="25" maxlength="25" />

          <input type="hidden" name="subscriptions" id="subscriptions" value="http://www.theavanti.com/myavanti/" />

          <input type="button" name="button" action="Upload File" value="Upload File" />

        </div>

 

        <div class="formid2">Select and Send photo file two (second choice)</div>

        <div class="formfield2"> Photo Two

          <input type="file" name="myphoto2" id="myphoto2" size="25" maxlength="25" />

          <input type="hidden" name="subscriptions" id="subscriptions" value="http://www.theavanti.com/myavanti/" />

          <input type="button" name="button" action="Upload File" value="Upload File" />

        </div>

 

        <div class="formid2">Select and Send photo file three (third choice)</div>

        <div class="formfield2"> Photo Three

          <input type="file" name="myphoto3" id="myphoto3" size="24" maxlength="24" />

          <input type="hidden" name="subscriptions" id="subscriptions" value="http://www.theavanti.com/myavanti/" />

          <input type="button" name="button" action="Upload File" value="Upload File" />

        </div>

 

<div class="formid2"><span class="tabletext">*Required Fields</span></div>

        <div class="formfield2">

          <input type="submit" name="submitcontent" id="submitcontent" value="Submit Form" />

          <input type="reset" name="reset" id="reset" value="Clear Form" />

          <input type="hidden" name="subject" id="subject" value="http://www.theavanti.com/myavanti/" />

          <input type="hidden" name="next_url" id="next_url" value="http://www.theavanti.com/myavanti_thankyou.html" />

</div></form>

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points