|
| |
|
|
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?
|
|
|
|
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
|
|
|
|
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
|
|
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
|
|
|