thanks netsrac if I can pick your brain a little more i have a response write further down in my script and the img path also gives me an error src=upload/\"&upload.form(\"pass\")\"/
If File.ImageType <> \"GIF\" and File.ImageType <> \"JPG\" Then Response.Write \"GIF or JPG files only please!\" Exit For End If If File.ImageWidth > 1500 Then Response.Write \"Image width cannot exceed 1500 pixels.\" Exit For End If
If File.ImageHeight > 1600 Then Response.Write \"Image height cannot exceed 1600 pixels.\" Exit For End If
Set Conn = Server.CreateObject(\"ADODB.Connection\") Conn.Open \"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=\" & Server.MapPath (\"media.mdb\") strSQL=\"INSERT into pics (pass, pic1) Values(\'\"&upload.form(\"pass\")&\"\',\'\" & File.ExtractFileName & \"\')\" Conn.Execute(strSQL) response.write \"<link rel=stylesheet style=text/css href=styles_old.css><body>\" response.write \"<table valign=top align=center width=550 cellpadding=5 cellspacing=0>\" response.write \"<tr><td colspan=3><img id=img src=upload/\"&upload.form(\"pass\") & \"/\" & File.ExtractFileName & \" border=0 width=110 height=100 align=left hspace=10>Dit billed <b>\" & File.ExtractFileName & \"</b> ligger klar på vores server.<br><br>Hvis du ønsker at uploade flere billeder kan du klikke <a href=java script:history.go(-1)>hér</a>.<br><br>For at aktivere din bestilling, indtast din email, hvorefter du vil blive sendt tilbage til vores forside.</td></tr>\" response.write \"<tr><td colspan=3><hr></td></tr>\" response.write \"<tr><td align=right><form action=mail_pic_activate.asp method=post><input id=form type=hidden name=activate value=activate><input type=hidden name=pass value=\"&upload.form(\"pass\")&\"></td></tr>\" response.write \"<tr><td align=right>Indtast Email:</td><td align=left><input id=form size=30 type=text name=email></td><td align=left><input id=form type=submit name=submit value=Aktivér bestilling></td></tr></form>\" response.write \"<tr><td colspan=3><hr></td></tr>\" response.write \"<tr><td colspan=3> </td></tr></table>\" Next %>
As you can see I upload and write to my db but since I am trying with the new upload path it only uploads to upload ? hmm Guzzie
hmm I have just doubled checked again And the form is fine and it also writes/uploads to the DB but the upload path is still uploading only to upload ? Damn this is strange :[ Guzzie
hehe Nope it still dont work ;( hmmm still the same it like the value isn´t being inserted in the path damn strange Guzzie (maybe I should create a new question since you are using quite a bit of time on this? )
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.