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

send people in a database an email (2001) [url] - question (2000) How to Ignore Your Best Customers (2003) autosensing lanague selection (1997) authenticating a second user, the sequel (1997) RE: Error: template (1997) Searching for all records (1998) Working Days (2004) Re[3]: 2nd WebCatalog2 Feature Request (1996) Re:Signal Raised (1997) Webcat Manual and TeaRoom Examples Uses Different Examples. (1997) searching problem (1998) WebCat2b12--[searchstring] bug (1997) Upcoming 2.1 Release and PCS Committment (1997) Using Plug-In while running 1.6.1 (1997) [WebDNA] Search encrypted field (2015) Showif Error Generated... (2003) test (2003) [username] [password] Not shown! HELP! (1999) 'does not contain' operator needed ... (1997)