Click here to Skip to main content
16,011,626 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: java script problem while using in web application. Pin
Heath Stewart17-Oct-03 3:14
protectorHeath Stewart17-Oct-03 3:14 
GeneralRe: java script problem while using in web application. Pin
susree17-Oct-03 4:40
susree17-Oct-03 4:40 
QuestionWeb Project Desing Problem ..Can u give Solution? Pin
coolvcguy15-Oct-03 12:51
coolvcguy15-Oct-03 12:51 
AnswerRe: Web Project Desing Problem ..Can u give Solution? Pin
Sage16-Oct-03 8:30
Sage16-Oct-03 8:30 
GeneralRe: Web Project Desing Problem ..Can u give Solution? Pin
coolvcguy16-Oct-03 9:35
coolvcguy16-Oct-03 9:35 
QuestionActual position of a control in HTML? Pin
CherezZaboro15-Oct-03 7:05
CherezZaboro15-Oct-03 7:05 
AnswerRe: Actual position of a control in HTML? Pin
Heath Stewart16-Oct-03 10:23
protectorHeath Stewart16-Oct-03 10:23 
GeneralASP Classic Hassle Pin
-- NA --15-Oct-03 2:52
-- NA --15-Oct-03 2:52 
I've got a problem with a form in ASP. The first page accepts two picture files and 3 text fields, and the next page is supposed to save them into an Access database. The pictures save fine, but as soon as I try and use a Request.Form() on the text fields I get an HTTP500 error. Here are the pages:

add_record.asp:

<form method="post" action="write_record.asp" enctype="multipart/form-data"><br />
thumb: <input type="file" name="thumbfield"><br><br />
picture: <input name="picturefield" type="file"><br><br />
make: <input name="makefield" type="text"><br><br />
price: <input name="pricefield" type="text"<>br><br />
description:<br><br />
<textarea name="descriptionfield" cols="50" rows="10"></textarea><br><br />
<input type="submit" name="submit" value="submit"><br />
</form>


write_record.asp:

<% <br />
Set theForm = Server.CreateObject("ABCUpload4.XForm")<br />
Set theField = theForm("picturefield")(1)<br />
<br />
If theField.FileExists and theField.ImageType <> 0 Then<br />
  Set cn = Server.CreateObject("ADODB.Connection")<br />
  theConn = "dsn=vos;"<br />
  cn.Open theConn<br />
  Set rs = Server.CreateObject("ADODB.Recordset")<br />
  rs.Open "occasions", cn, 1, 3<br />
  rs.AddNew<br />
  rs("picture").Value = theField.Data<br />
Set theField = theForm("thumbfield")(1)<br />
If theField.FileExists and theField.ImageType <> 0 Then<br />
rs("thumb").Value = theField.Data<br />
end if<br />
<br />
'rs("make").Value = Request.Form("makefield") 'this causes it to die<br />
<br />
  rs.Update<br />
  rs.Close<br />
  cn.Close<br />
End If <br />
<br />
%>


Any help will be appreciated.

Paul Smile | :)

modified 18-Jul-18 11:59am.

GeneralRe: ASP Classic Hassle Pin
steveman99915-Oct-03 3:17
steveman99915-Oct-03 3:17 
GeneralRe: ASP Classic Hassle Pin
-- NA --15-Oct-03 3:28
-- NA --15-Oct-03 3:28 
Generalsimple table/backround question Pin
keegan14-Oct-03 10:02
keegan14-Oct-03 10:02 
GeneralRe: simple table/backround question Pin
ZoogieZork14-Oct-03 12:24
ZoogieZork14-Oct-03 12:24 
GeneralRe: simple table/backround question Pin
Amitux14-Oct-03 19:44
Amitux14-Oct-03 19:44 
GeneralRe: simple table/backround question Pin
susree17-Oct-03 2:57
susree17-Oct-03 2:57 
Generaliis smtp logging Pin
coryjscott13-Oct-03 9:33
coryjscott13-Oct-03 9:33 
GeneralRefresh frame with javascript Pin
chubbysilk13-Oct-03 8:26
chubbysilk13-Oct-03 8:26 
GeneralRe: Refresh frame with javascript Pin
Sage16-Oct-03 8:42
Sage16-Oct-03 8:42 
GeneralRe: Refresh frame with javascript Pin
chubbysilk16-Oct-03 11:16
chubbysilk16-Oct-03 11:16 
GeneralDestroy all variables on exit Pin
Brendan Vogt13-Oct-03 3:20
Brendan Vogt13-Oct-03 3:20 
GeneralRe: Destroy all variables on exit Pin
ZoogieZork14-Oct-03 12:19
ZoogieZork14-Oct-03 12:19 
GeneralSERVER-SIDED VALIDATION CHECKUP PLS Pin
Brendan Vogt13-Oct-03 3:16
Brendan Vogt13-Oct-03 3:16 
GeneralRe: SERVER-SIDED VALIDATION CHECKUP PLS Pin
markkuk13-Oct-03 3:35
markkuk13-Oct-03 3:35 
GeneralRe: SERVER-SIDED VALIDATION CHECKUP PLS Pin
Brendan Vogt13-Oct-03 3:41
Brendan Vogt13-Oct-03 3:41 
GeneralRe: SERVER-SIDED VALIDATION CHECKUP PLS Pin
Mike Dimmick13-Oct-03 4:04
Mike Dimmick13-Oct-03 4:04 
GeneralRe: SERVER-SIDED VALIDATION CHECKUP PLS Pin
Brendan Vogt15-Oct-03 2:41
Brendan Vogt15-Oct-03 2:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.