[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:

[WebDNA] Base 64 (2010) Running subtotal? (1998) 2.1b3 --> way slow (1997) checksum for credit cards? (1997) Document Contains No Data! (1997) Site Check (2006) locking variables? (2000) Setting up the server (1997) Email Problem (2006) Hyperboard users wanting a quoted message (1998) form data submission gets truncated (1997) WebMerchant Problem (1999) IE-caching (1998) Re:One more time (1997) restarting service remotely on NT (1997) using showpage and showcart commands (1996) Date Formats (1997) PCS Emailer's role ? (1997) Shell traceroute (2001) Major Security Hole (1998)