navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Writing back field value to the database, DRW

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Writing back field value to the database, DRW
Page: [1]
 
evansforsyth

 

Posts: 277
Joined: 12/11/2001
From: Grande Prairie, Alberta, Canada
Status: offline

 
Writing back field value to the database, DRW - 12/14/2001 23:48:47   
On the "Edit" component of a DRW I've removed the text box and just inserted the (uneditable) field value.

When clicking "OK" to accept the editing changes, the field value mentioned above is shortened down to one word. Ouch!

This is the code used to write the field value back.

<INPUT TYPE="HIDDEN" NAME="Departure" VALUE=<%=FP_FieldVal(fp_rs,"Departure")%>>

Any suggestions on how to write the entire field contents back?

rdouglass

 

Posts: 9167
From: Biddeford, ME USA
Status: offline

 
RE: Writing back field value to the database, DRW - 12/15/2001 16:04:53   
I'm not exactly sure what you're trying to do; maybe a URL or some more code may help... However, I think I do see a slight syntax error. You need another set of quotes. Also, you may only need Field instead of FieldVal if you're just spitting out text:

<INPUT TYPE="HIDDEN" NAME="Departure" VALUE="<%=FP_Field(fp_rs,"Departure")%>">

Can you explain a little more about the 'shortening' of the field name? What is the code (is this it) and what should it be?

 

(in reply to evansforsyth)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Writing back field value to the database, DRW - 12/15/2001 16:44:22   
I think you have it covered.
If the quotes are missed, the first space will end the string.

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart

(in reply to evansforsyth)
evansforsyth

 

Posts: 277
Joined: 12/11/2001
From: Grande Prairie, Alberta, Canada
Status: offline

 
RE: Writing back field value to the database, DRW - 12/15/2001 17:17:46   
Thanks, thanks, thanks!

Worked perfectly on the first try!

Evans


(in reply to evansforsyth)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Writing back field value to the database, DRW
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts