Uploading photos to webserver

  1. #1
    Alinda1023 is offline Newbie

    Uploading photos to webserver

    Hi,

    I am trying to add a form to my website and i want the member to be able to upload a photo with it at the same time.

    How do i go along getting this set up? I use frontpage to edit my webpages. The forms i created are working fine but when i put the upload button it stops working.

    What do i need to do?

    Thank you.


  2. #2
    Alinda1023 is offline Newbie
    Anyone?

  3. #3
    D-A-L is online now D-A-L Administrator
    Try posting your code here for the form and hopefully someone may be able to help. Simply type [ code ] without the gaps then after you have pasted the forms code type [ /code ] again without the gaps.

  4. #4
    Alinda1023 is offline Newbie
    I want all information submitted to be sent to an email address. The form works without the upload button but i really want to collect the photo/photos together with the form.

    Code:
     <form method="POST" action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit>
    						<!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan B-Reverse-Chronology="FALSE" S-Email-Format="HTML/BR" S-Email-Address="contest@lilangelsfpcandppc.com" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Little Angels Free Contest Entry" S-Builtin-Fields="REMOTE_NAME Date Time" S-Date-Format="%m/%d/%Y" S-Time-Format="%I:%M:%S %p" S-Form-Fields="" U-Confirmation-Url="index.html" --><!--webbot bot="SaveResults" endspan -->
    						<table border="0" width="60%" id="table6" cellpadding="0">
    							<tr>
    								<td width="98%" align="right" colspan="2">
    								<p align="center">
    								<font color="#800000" face="Arial" size="4">*All 
    								fields are necessary*</font></td>
    							</tr>
    							<tr>
    								<td width="98%" align="right" colspan="2">&nbsp;</td>
    							</tr>
    							<tr>
    								<td width="43%" align="right">
    								<span style="font-size: 13pt">*Child's Name:</span></td>
    								<td width="55%">
    								<input type="text" name="Child's Name" size="20"></td>
    							</tr>
    							<tr>
    								<td width="43%" align="right">
    								<span style="font-size: 13pt">*Child's Age:</span></td>
    								<td width="55%">
    								<input type="text" name="Child's Age" size="20"></td>
    							</tr>
    							<tr>
    								<td width="43%" align="right">
    								<span style="font-size: 13pt">*Category 
    								entering:</span></td>
    								<td width="55%">
    								<select size="1" name="Category Entering">
    								<option selected>Babies (0-12 months)</option>
    								<option>Toddlers (13 ms-3 years)</option>
    								<option>PreSchooler (4yrs-6yrs)</option>
    								<option>Child (7yrs-13yrs)</option>
    								<option>Sibling/Friends</option>
    								</select></td>
    							</tr>
    							<tr>
    								<td width="43%" align="right">
    								<span style="font-size: 13pt">*Parent's Name:</span></td>
    								<td width="55%">
    								<input type="text" name="Parent's Name:" size="20"></td>
    							</tr>
    							<tr>
    								<td width="43%" align="right">
    								<span style="font-size: 13pt">*Email address:</span></td>
    								<td width="55%">
    								<input type="text" name="Valid Email" size="20"></td>
    							</tr>
    							<tr>
    								<td width="43%" align="right">
    								<span style="font-size: 13pt">*Agree to 
    								terms/rules?:</span></td>
    								<td width="55%">
    								<input type="checkbox" name="Agree" value="ON"></td>
    							</tr>
    							<tr>
    								<td colspan="2">
    								<p align="center">
    								<input type="submit" value="Submit" name="B2"></td>
    							</tr>
    						</table>
    					</form>

  5. #5
    HappyBeaver is offline Bea*ering Away!
    I see you have a similar form here http://www.lilangelsfpcandppc.com/enter.html that works.

    The code you've posted above.. I can't see anything in there about uploading images though???

    This is a very good page explaining most things you need to know about web form including uploading. http://htmlhelp.com/faq/html/forms.html
    Last edited by HappyBeaver; 10-01-2008 at 07:22 AM.

  6. #6
    abes is offline Valued Member
    Tackle the Web with $5.99 .COM's from Go Daddy!
    Hey Alinda!

    They way I've done it is through a form that accepts all of the information along with any files user wants to submit and then I just receive an e-mail saying i.e. "John Smith has just uploaded file Picture01.jpg". That allows me to receive light messages without the necessity of downloading all the files, which might take forever if you get 100 e-mails with 10mb attachment each.

    Now to access the files I get notified about I've written a simple web interface that allows you to download or delete them. The whole thing is password protected.

    If you think this would work for you, instead of the file coming as an attachment then let me know. I will send you all the code you need to have it working and also can help with the implementation.

    Cheers!

+ Reply to Thread