[WebDNA] formdata written into a db

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112693
interpreted = N
texte = 276 ------=_Part_790054_638894832.1459037016952 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I have a form where photo filenames are entered by a client. I want to take these photo filenames and their width and height and write them to a db when this form is submitted. form html looks like this... (usually no more than 6 photos at a time....) I'd like to write the filename, width and height into a db like this Filename width height2-13-16-1.jpg 240 3902-13-16-2.jpg 285 2952-25-16-1.jpg 300 240 But since photo1name, photo2name, photo3name would all be in written to the same field "filename" like in the example db above, would I use [loop] to do this? I have a feeling [loop] wouldn't work and what I'm trying to do isn't going to be possible .. Trying something like this just writes the first [__photo1name] and not the 2nd one, pretty much as I'd expect it to behave. [append db=photos.db]&filename=[__photo1name]&filename=[__photo2name][/append] ------=_Part_790054_638894832.1459037016952 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I have a form where photo filenames are entered by a cl= ient.

I wan= t to take these photo filenames and their width and height and write them t= o a db when this form is submitted.


form html looks like this... (usually no more than 6 photos at = a time....)

<input name=3D"__photo1name" value=3D"2-13-16-1" size=3D"22">
<= div id=3D"yui_3_16_0_ym18_1_1459035459049_2656" dir=3D"ltr" class=3D""><= input name=3D"__photo1width" value=3D"240" size=3D"3">
<input name= =3D"__photo1height" value=3D"390" size=3D"3">

<input name=3D"__photo2name" value= =3D"2-13-16-2" size=3D"22">
<input name=3D"__photo2width" value=3D"= 285" size=3D"3">
<input name=3D"__photo2height" value=3D"295" size= =3D"3">

= <input name=3D"__photo3name" value=3D"2-25-16-1" size=3D"22">
<i= nput name=3D"__photo3width" value=3D"300" size=3D"3">
<input name= =3D"__photo3height" value=3D"240" size=3D"3">


I'd like to write the filename, width and height i= nto a db like this

Filename=09width=09height
2-13-16-1.jpg=09240= =09390
2-13-16-2.jpg=09285=09295
2-25-16-1.jpg=09300=09240


=
But= since photo1name, photo2name, photo3name would all be in written to the sa= me field "filename" like in the example db above, would I use [loop] to do = this? I have a feeling [loop] wouldn't work and what I'm trying to do isn't= going to be possible ..


Trying something like this just writes the first [__photo1name] and not th= e 2nd one, pretty much as I'd expect it to behave.

[append db=3Dphotos.db]&filenam= e=3D[__photo1name]&filename=3D[__photo2name][/append]


=


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us ------=_Part_790054_638894832.1459037016952-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] formdata written into a db (Rich Kwas 2016)
  2. Re: [WebDNA] formdata written into a db (Brian Burton 2016)
  3. [WebDNA] formdata written into a db (Rich Kwas 2016)
276 ------=_Part_790054_638894832.1459037016952 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I have a form where photo filenames are entered by a client. I want to take these photo filenames and their width and height and write them to a db when this form is submitted. form html looks like this... (usually no more than 6 photos at a time....) I'd like to write the filename, width and height into a db like this Filename width height2-13-16-1.jpg 240 3902-13-16-2.jpg 285 2952-25-16-1.jpg 300 240 But since photo1name, photo2name, photo3name would all be in written to the same field "filename" like in the example db above, would I use [loop] to do this? I have a feeling [loop] wouldn't work and what I'm trying to do isn't going to be possible .. Trying something like this just writes the first [__photo1name] and not the 2nd one, pretty much as I'd expect it to behave. [append db=photos.db]&filename=[__photo1name]&filename=[__photo2name][/append] ------=_Part_790054_638894832.1459037016952 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I have a form where photo filenames are entered by a cl= ient.

I wan= t to take these photo filenames and their width and height and write them t= o a db when this form is submitted.


form html looks like this... (usually no more than 6 photos at = a time....)

<input name=3D"__photo1name" value=3D"2-13-16-1" size=3D"22">
<= div id=3D"yui_3_16_0_ym18_1_1459035459049_2656" dir=3D"ltr" class=3D""><= input name=3D"__photo1width" value=3D"240" size=3D"3">
<input name= =3D"__photo1height" value=3D"390" size=3D"3">

<input name=3D"__photo2name" value= =3D"2-13-16-2" size=3D"22">
<input name=3D"__photo2width" value=3D"= 285" size=3D"3">
<input name=3D"__photo2height" value=3D"295" size= =3D"3">

= <input name=3D"__photo3name" value=3D"2-25-16-1" size=3D"22">
<i= nput name=3D"__photo3width" value=3D"300" size=3D"3">
<input name= =3D"__photo3height" value=3D"240" size=3D"3">


I'd like to write the filename, width and height i= nto a db like this

Filename=09width=09height
2-13-16-1.jpg=09240= =09390
2-13-16-2.jpg=09285=09295
2-25-16-1.jpg=09300=09240


=
But= since photo1name, photo2name, photo3name would all be in written to the sa= me field "filename" like in the example db above, would I use [loop] to do = this? I have a feeling [loop] wouldn't work and what I'm trying to do isn't= going to be possible ..


Trying something like this just writes the first [__photo1name] and not th= e 2nd one, pretty much as I'd expect it to behave.

[append db=3Dphotos.db]&filenam= e=3D[__photo1name]&filename=3D[__photo2name][/append]


=


--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us ------=_Part_790054_638894832.1459037016952-- . Rich Kwas

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Hyperboard users wanting a quoted message (1998) OT-JS why it does not run on Mac (2001) [OT] Dedicated Image Uploader/Server [/OT] (2003) Fed Ex Rate Charts (2003) Logging purchases (1997) Running 2 two WebCatalog.acgi's (1996) Looking up two prices in database? (1997) Sorry WebDNA server not running. error (2002) Slightly [OT] Trying to get clients SQL system going (2005) A Global Variable (1997) Shipping Calculation Problem (1997) Shipping rate x Quantity solution needed (2000) OK to delete records while finding them? (2000) WebMerchant Mac 3.0 beta available (1998) HTTP "host" header (2003) Close Databases Crash? (1998) Replace Statement (1997) Email notification to one of multiple vendors ? (1997) Error Log.db --however (1997) Attn iTools / WebCat users.... (2004)