|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Input Form to Database Help (will pay)
Hi everyone,
I have created a web site which is database driven using Microsoft Access and Microsoft Frontpage 2003. Our results are displaying as planned. So everything is fine in that area. However, we are trying to create an input form page so members can create their own information in the database (okay, no problem,) but we also want the user to UPLOAD a picture to the database which would store the pic in a default folder and ALSO create the file path into the PHOTO FIELD of the database so it points to that directory...............any help will be appreciated. I will pay someone to create this for me just for the fact that I will learn from it......Hope this makes sense. P.s. I know how to use the FP upload feature for the graphic, but how do I store the file path in the table of the database to point to that directory including the filename |
|
#2
|
||||
|
||||
|
upload script
Quote:
Try throwing away front page and coding yourself, for the upload check out ASPUpload, www.aspupload.com upload.asp <div id="divContent"> <table width="405"><tr><td>Upload your graphics here. <br><br>Graphic sizes in pixels width x height <br>letting and sales thumbnails 150 x 110 <br>standard image 250 x 180 <br>contact photo 150 x 110 <br><br> Also it is important that the graphic is either in jpg or gif format. The graphic should also be limited to about 15K, less is more. The graphic name is what you add in the image URL part of the database. If you attempt to upload a graphic file that is too large it will upload a maximum of 25K and not the rest. These files will not work.</td></tr></table> <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="upload1.asp"> <INPUT TYPE=FILE SIZE=40 NAME="uploadfile1"><BR> <INPUT TYPE=FILE SIZE=40 NAME="uploadfile2"><BR> <INPUT TYPE=FILE SIZE=40 NAME="uploadfile3"><BR> <INPUT TYPE=FILE SIZE=40 NAME="uploadfile4"><BR> <INPUT TYPE=SUBMIT VALUE="Upload!" onclick="LimitAttach(this.form, this.form.uploadfile.value)"> </FORM> </div> upload1.asp <div id="divContent"> <% Set Upload = Server.CreateObject("Persits.Upload.1") Upload.SetMaxSize 60000 Upload.Save (Server.mappath ("../htdocs/images/uploads")) %> <% = Count %> images were successfully uploaded <br> <a href="upload.asp">Upload more images</a> </div> Guy McLaren webtech www.webtech.co.za |
|
#3
|
||||
|
||||
|
code for viewing images
While Not objRSi.EOF
If len(objRSi("paraimage")) > 0 Then Response.Write "</td></tr><tr><td width= ""470"" valign= ""top"" colspan=""2"" bgcolor=""#cbcbcb"" >" Response.Write "<img src=""../images/uploads/" & objRSi("paraimage") & """ " Response.Write " width=""150"" height=""110"" border=""3"" vspace=""3"" hspace=""3"" align=""" & objRSi("imgposition") & """>" Response.Write objRSi("paratext") & "<br><br>" Else Response.Write "</td></tr><tr><td width= ""470"" valign= ""top"" colspan=""2"" bgcolor=""#cbcbcb"" >" Response.Write objRSi("paratext")& "<br><br>" End If Guy McLaren webtech www.webtech.co.za guy@webtech.co.za |
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > Input Form to Database Help (will pay) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|